Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "pyre: remove" #118014

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Revert "pyre: remove" #118014

wants to merge 2 commits into from

Conversation

siraben
Copy link
Member

@siraben siraben commented Mar 30, 2021

Motivation for this change

This reverts commit fa4b518. Pyre was under constant heavy changes which put a lot of burden on maintainers (#70001). Hopefully we can get things working again on the latest version.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -10462,6 +10462,8 @@ in
ocamlPackages = ocaml-ng.ocamlPackages_4_07;
};

pyre = callPackage ../development/tools/pyre { };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an odd place to insert it back in.

EOF
'';
pyre-bin = stdenv.mkDerivation {
name = "pyre-${pyre-version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name = "pyre-${pyre-version}";
pname = "pyre";
inherit version src;


ln -sf ${versionFile} ./scripts/generate-version-number.sh

mkdir $(pwd)/build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mkdir $(pwd)/build
mkdir build

homepage = https://pyre-check.org;
license = licenses.mit;
platforms = ocamlPackages.ocaml.meta.platforms;
maintainers = with maintainers; [ teh ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainers = with maintainers; [ teh ];
maintainers = with maintainers; [ siraben ];

Comment on lines +91 to +92
phases = [ "unpackPhase" "installPhase" ];
installPhase = "cp -r $src $out";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
phases = [ "unpackPhase" "installPhase" ];
installPhase = "cp -r $src $out";
installPhase = ''
cp -r $src $out
'';

Comment on lines +96 to +97
version = pyre-version;
src = pyre-src;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = pyre-version;
src = pyre-src;
inherit version src;

Comment on lines +6 to +7
pyre-version = "0.0.22"; # also change typeshed revision below with $pyre-src/.typeshed-version
pyre-src = fetchFromGitHub {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pyre-version = "0.0.22"; # also change typeshed revision below with $pyre-src/.typeshed-version
pyre-src = fetchFromGitHub {
version = "0.0.22"; # also change typeshed revision below with $pyre-src/.typeshed-version
src = fetchFromGitHub {

pyre-bin = stdenv.mkDerivation {
name = "pyre-${pyre-version}";

src = pyre-src;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
src = pyre-src;

'';
checkPhase = ''
bash scripts/run-python-tests.sh
'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meta should be in the final package, too.

@siraben siraben marked this pull request as draft March 30, 2021 08:51
@mjlbach
Copy link
Contributor

mjlbach commented May 10, 2021

@siraben do you have interest in continuing this pull request? I'd like to get this packaged.

@siraben
Copy link
Member Author

siraben commented May 11, 2021

Hi @mjlbach, that would be great. I haven't made progress on this PR because of the difficulty in packaging pyre's latest version.

@stale
Copy link

stale bot commented Nov 9, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants