Skip to content

Commit d33334c

Browse files
committedJan 1, 2018
python.pkgs.pytools: fix expression
(cherry picked from commit 718356d) python.pkgs.pytools: 2017.4 -> 2017.6 (cherry picked from commit bed35cf) pytools fixup
1 parent 5362b53 commit d33334c

File tree

2 files changed

+41
-31
lines changed

2 files changed

+41
-31
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{ lib
2+
, buildPythonPackage
3+
, fetchPypi
4+
, decorator
5+
, appdirs
6+
, six
7+
, numpy
8+
, pytest
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "pytools";
13+
version = "2017.6";
14+
name = "${pname}-${version}";
15+
16+
src = fetchPypi {
17+
inherit pname version;
18+
sha256 = "80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115";
19+
};
20+
21+
checkInputs = [ pytest ];
22+
23+
propagatedBuildInputs = [
24+
decorator
25+
appdirs
26+
six
27+
numpy
28+
];
29+
30+
checkPhase = ''
31+
py.test -k 'not test_persistent_dict'
32+
'';
33+
34+
meta = {
35+
homepage = https://github.com/inducer/pytools/;
36+
description = "Miscellaneous Python lifesavers.";
37+
license = lib.licenses.mit;
38+
maintainers = with lib.maintainers; [ artuuge ];
39+
};
40+
}

‎pkgs/top-level/python-packages.nix

+1-31
Original file line numberDiff line numberDiff line change
@@ -7494,37 +7494,7 @@ in {
74947494

74957495
pysrt = callPackage ../development/python-modules/pysrt { };
74967496

7497-
pytools = buildPythonPackage rec {
7498-
name = "pytools-${version}";
7499-
version = "2017.4";
7500-
7501-
src = pkgs.fetchFromGitHub {
7502-
owner = "inducer";
7503-
repo = "pytools";
7504-
rev = "8078e74265bb5a3c9676c698595ab5450cd2bfe7";
7505-
sha256 = "17q61l79fcxkj5jxg3fnymi652sdjp5s6kpsabgxp22kma9crr28";
7506-
};
7507-
7508-
buildInputs = with self; [
7509-
decorator
7510-
appdirs
7511-
six
7512-
numpy
7513-
pytest
7514-
];
7515-
7516-
checkPhase = ''
7517-
py.test -k 'not test_persistent_dict'
7518-
'';
7519-
7520-
meta = {
7521-
homepage = https://github.com/inducer/pytools/;
7522-
description = "Miscellaneous Python lifesavers.";
7523-
license = licenses.mit;
7524-
maintainers = with maintainers; [ artuuge ];
7525-
};
7526-
7527-
};
7497+
pytools = callPackage ../development/python-modules/pytools { };
75287498

75297499
pytun = buildPythonPackage rec {
75307500
name = "pytun-${version}";

0 commit comments

Comments
 (0)
Please sign in to comment.