nixpkgs/pkgs/development/python-modules/pytools/default.nix
2023-07-31 04:47:17 +00:00

47 lines
840 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, numpy
, platformdirs
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytools";
version = "2023.1.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-gGN4c9IG9rzt9820atk+horLTqIlbbBS38yocr3QMh8=";
};
propagatedBuildInputs = [
decorator
numpy
platformdirs
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytools"
"pytools.batchjob"
"pytools.lex"
];
meta = {
homepage = "https://github.com/inducer/pytools/";
description = "Miscellaneous Python lifesavers.";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ artuuge ];
};
}