39 lines
676 B
Nix
39 lines
676 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, decorator
|
|
, appdirs
|
|
, six
|
|
, numpy
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytools";
|
|
version = "2020.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3cacefed54148aafb07502c7c907cae8d9327ea35df16e3366c883a706ed5601";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|