tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.numtraits: move expression
Frederik Rietdijk
8 years ago
5c2d2cbf
4ad0e0da
+34
-24
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
numtraits
default.nix
top-level
python-packages.nix
+33
pkgs/development/python-modules/numtraits/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, pytest
5
5
+
, six
6
6
+
, numpy
7
7
+
, traitlets
8
8
+
}:
9
9
+
10
10
+
buildPythonPackage rec {
11
11
+
pname = "numtraits";
12
12
+
version = "0.2";
13
13
+
name = "${pname}-${version}";
14
14
+
15
15
+
src = fetchPypi {
16
16
+
inherit pname version;
17
17
+
sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
18
18
+
};
19
19
+
20
20
+
checkInputs = [ pytest ];
21
21
+
propagatedBuildInputs = [ six numpy traitlets];
22
22
+
23
23
+
checkPhase = ''
24
24
+
py.test
25
25
+
'';
26
26
+
27
27
+
meta = {
28
28
+
description = "Numerical traits for Python objects";
29
29
+
license = lib.licenses.bsd2;
30
30
+
maintainers = with lib.maintainers; [ fridh ];
31
31
+
homepage = https://github.com/astrofrog/numtraits;
32
32
+
};
33
33
+
}
+1
-24
pkgs/top-level/python-packages.nix
···
13168
13168
13169
13169
numpy-stl = callPackage ../development/python-modules/numpy-stl { };
13170
13170
13171
13171
-
numtraits = buildPythonPackage rec {
13172
13172
-
pname = "numtraits";
13173
13173
-
version = "0.2";
13174
13174
-
name = "${pname}-${version}";
13175
13175
-
13176
13176
-
src = pkgs.fetchurl {
13177
13177
-
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
13178
13178
-
sha256 = "2fca9a6c9334f7358ef1a3e2e64ccaa6a479fc99fc096910e0d5fbe8edcdfd7e";
13179
13179
-
};
13180
13180
-
13181
13181
-
buildInputs = with self; [ pytest ];
13182
13182
-
propagatedBuildInputs = with self; [ six numpy traitlets];
13183
13183
-
13184
13184
-
checkPhase = ''
13185
13185
-
py.test
13186
13186
-
'';
13187
13187
-
13188
13188
-
meta = {
13189
13189
-
description = "Numerical traits for Python objects";
13190
13190
-
license = licenses.bsd2;
13191
13191
-
maintainers = with maintainers; [ fridh ];
13192
13192
-
homepage = https://github.com/astrofrog/numtraits;
13193
13193
-
};
13194
13194
-
};
13171
13171
+
numtraits = callPackage ../development/python-modules/numtraits { };
13195
13172
13196
13173
nwdiag = buildPythonPackage rec {
13197
13174
name = "nwdiag-1.0.3";