git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.numtraits: move expression
commit5c2d2cbff321387bbada44ba86f7d422f53b88b7 authorFrederik Rietdijk <fridh@fridh.nl> dateSun 29 Oct 2017, 13:41 (9 years ago) parent4ad0e0d
2 files changed+34−24
pkgs/development/python-modules/numtraits/default.nix+33 pkgs/top-level/python-packages.nix+1−24
pkgs/development/python-modules/numtraits/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pytest
5+, six
6+, numpy
7+, traitlets
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "numtraits";
12+ version = "0.2";
13+ name = "${pname}-${version}";
14+
15+ src = fetchPypi {
16+ inherit pname version;
17+ sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
18+ };
19+
20+ checkInputs = [ pytest ];
21+ propagatedBuildInputs = [ six numpy traitlets];
22+
23+ checkPhase = ''
24+ py.test
25+ '';
26+
27+ meta = {
28+ description = "Numerical traits for Python objects";
29+ license = lib.licenses.bsd2;
30+ maintainers = with lib.maintainers; [ fridh ];
31+ homepage = https://github.com/astrofrog/numtraits;
32+ };
33+}
pkgs/top-level/python-packages.nix+1−24
@@ -13168,30 +13168,7 @@ in {
1316813168
1316913169 numpy-stl = callPackage ../development/python-modules/numpy-stl { };
1317013170
13171− numtraits = buildPythonPackage rec {
13172− pname = "numtraits";
13173− version = "0.2";
13174− name = "${pname}-${version}";
13175−
13176− src = pkgs.fetchurl {
13177− url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
13178− sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
13179− };
13180−
13181− buildInputs = with self; [ pytest ];
13182− propagatedBuildInputs = with self; [ six numpy traitlets];
13183−
13184− checkPhase = ''
13185− py.test
13186− '';
13187−
13188− meta = {
13189− description = "Numerical traits for Python objects";
13190− license = licenses.bsd2;
13191− maintainers = with maintainers; [ fridh ];
13192− homepage = https://github.com/astrofrog/numtraits;
13193− };
13194− };
13171+ numtraits = callPackage ../development/python-modules/numtraits { };
1319513172
1319613173 nwdiag = buildPythonPackage rec {
1319713174 name = "nwdiag-1.0.3";