Skip to content

Commit

Permalink
python.pkgs.numtraits: move expression
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Oct 29, 2017
1 parent 4ad0e0d commit 5c2d2cb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/numtraits/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, six
, numpy
, traitlets
}:

buildPythonPackage rec {
pname = "numtraits";
version = "0.2";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
};

checkInputs = [ pytest ];
propagatedBuildInputs = [ six numpy traitlets];

checkPhase = ''
py.test
'';

meta = {
description = "Numerical traits for Python objects";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fridh ];
homepage = https://github.com/astrofrog/numtraits;
};
}
25 changes: 1 addition & 24 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13168,30 +13168,7 @@ in {

numpy-stl = callPackage ../development/python-modules/numpy-stl { };

numtraits = buildPythonPackage rec {
pname = "numtraits";
version = "0.2";
name = "${pname}-${version}";

src = pkgs.fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
};

buildInputs = with self; [ pytest ];
propagatedBuildInputs = with self; [ six numpy traitlets];

checkPhase = ''
py.test
'';

meta = {
description = "Numerical traits for Python objects";
license = licenses.bsd2;
maintainers = with maintainers; [ fridh ];
homepage = https://github.com/astrofrog/numtraits;
};
};
numtraits = callPackage ../development/python-modules/numtraits { };

nwdiag = buildPythonPackage rec {
name = "nwdiag-1.0.3";
Expand Down

0 comments on commit 5c2d2cb

Please sign in to comment.