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

scitools: init at 0.9.0 #29059

Closed
wants to merge 3 commits into from
Closed

scitools: init at 0.9.0 #29059

wants to merge 3 commits into from

Conversation

jamtrott
Copy link
Contributor

@jamtrott jamtrott commented Sep 6, 2017

Motivation for this change

Add the scitools Python package, which contains many useful tools for scientific computing in Python.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@jamtrott jamtrott requested a review from FRidh as a code owner September 6, 2017 20:06
version = "0.9.0";
name = "${pname}-${version}";

src = fetchurl {
Copy link
Member

Choose a reason for hiding this comment

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

This can be 'simplified' by using fetchFromGitHub instead:

{
  src = fetchFromGitHub {
    owner = "hplgit";
    repo = "scitools";
    rev = "${name}";
    sha256 = "...";
  };
}

Just run nix-prefetch-url --unpack 'https://github.com/hplgit/scitools/archive/scitools-0.9.0.tar.gz' to get the sha256 (if it's different).

buildInputs = [ matplotlib ];
propagatedBuildInputs = [ numpy ];

meta = {
Copy link
Member

Choose a reason for hiding this comment

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

Add the license under meta here with license = stdenv.lib.licenses.bsd3;. And also add yourself as maintainer, maintainers = with stdenv.lib.maintainers; [ jamtrott ]; after adding yourself to https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix.

@jamtrott
Copy link
Contributor Author

jamtrott commented Sep 7, 2017

@vyp, Thanks for the review! The above two patches should address the issues.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

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

Judging from the setup.py this package only works with Python 2.x.

sha256 = "07yxbc7spr7vy72lg3czv4r4q2f0wq17vszlnsfmsb2ix8jajp4d";
};

buildInputs = [ matplotlib ];
Copy link
Member

Choose a reason for hiding this comment

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

also propagated

@veprbl
Copy link
Member

veprbl commented Dec 1, 2018

@jamtrott Are you still interested in implementing this? Before this is merged you would need to address remaining issues like using propagatedBuildInputs for matplotlib and setting disabled = !isPy27 and do a rebase.

@jamtrott
Copy link
Contributor Author

jamtrott commented Dec 3, 2018

Hi, @veprbl. I don't need this package anymore, and I'm afraid that it's no longer being maintained anyway. I will close the pull request.

Thank you all for your help.

@jamtrott jamtrott closed this Dec 3, 2018
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

6 participants