2017-12-31 10:25:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-12-31 10:27:29 +00:00
|
|
|
, fetchPypi
|
2020-08-17 02:27:34 +00:00
|
|
|
, pythonOlder
|
2017-12-31 10:25:36 +00:00
|
|
|
, decorator
|
|
|
|
, appdirs
|
|
|
|
, six
|
|
|
|
, numpy
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytools";
|
2021-03-24 09:28:26 +00:00
|
|
|
version = "2021.2.1";
|
2020-08-17 02:27:34 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-12-31 10:25:36 +00:00
|
|
|
|
2017-12-31 10:27:29 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:26 +00:00
|
|
|
sha256 = "ebbcc38c7a30b1a0ce1a74816c85db9f2556bb4d5b9a71f85f5d88f69ddcb96b";
|
2017-12-31 10:25:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
|
|
|
appdirs
|
|
|
|
six
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -k 'not test_persistent_dict'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/inducer/pytools/";
|
2017-12-31 10:25:36 +00:00
|
|
|
description = "Miscellaneous Python lifesavers.";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ artuuge ];
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|