depot/third_party/nixpkgs/pkgs/development/python-modules/pytools/default.nix

47 lines
837 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, decorator
, numpy
, platformdirs
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytools";
version = "2022.1.12";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-TWKHXpoqsqJOOTqai3mUkvGnIb/6hArzgHv9Qocd0fQ=";
};
propagatedBuildInputs = [
decorator
numpy
platformdirs
] ++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
checkInputs = [
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 ];
};
}