42 lines
724 B
Nix
42 lines
724 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, decorator
|
|
, appdirs
|
|
, six
|
|
, numpy
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytools";
|
|
version = "2021.2.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ebbcc38c7a30b1a0ce1a74816c85db9f2556bb4d5b9a71f85f5d88f69ddcb96b";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|