Skip to content

Commit

Permalink
python.pkgs.pytools: fix expression
Browse files Browse the repository at this point in the history
(cherry picked from commit 718356d)

python.pkgs.pytools: 2017.4 -> 2017.6

(cherry picked from commit bed35cf)

pytools fixup
  • Loading branch information
FRidh committed Jan 1, 2018
1 parent 5362b53 commit d33334c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 31 deletions.
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/pytools/default.nix
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, decorator
, appdirs
, six
, numpy
, pytest
}:

buildPythonPackage rec {
pname = "pytools";
version = "2017.6";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "80f1bba4469d473c1b3969bc8e188c03bcc94d35807a889ceebbfc78e3208115";
};

checkInputs = [ pytest ];

propagatedBuildInputs = [
decorator
appdirs
six
numpy
];

checkPhase = ''
py.test -k 'not test_persistent_dict'
'';

meta = {
homepage = https://github.com/inducer/pytools/;
description = "Miscellaneous Python lifesavers.";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ artuuge ];
};
}
32 changes: 1 addition & 31 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -7494,37 +7494,7 @@ in {

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

pytools = buildPythonPackage rec {
name = "pytools-${version}";
version = "2017.4";

src = pkgs.fetchFromGitHub {
owner = "inducer";
repo = "pytools";
rev = "8078e74265bb5a3c9676c698595ab5450cd2bfe7";
sha256 = "17q61l79fcxkj5jxg3fnymi652sdjp5s6kpsabgxp22kma9crr28";
};

buildInputs = with self; [
decorator
appdirs
six
numpy
pytest
];

checkPhase = ''
py.test -k 'not test_persistent_dict'
'';

meta = {
homepage = https://github.com/inducer/pytools/;
description = "Miscellaneous Python lifesavers.";
license = licenses.mit;
maintainers = with maintainers; [ artuuge ];
};

};
pytools = callPackage ../development/python-modules/pytools { };

pytun = buildPythonPackage rec {
name = "pytun-${version}";
Expand Down

0 comments on commit d33334c

Please sign in to comment.