2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, decorator
|
|
|
|
, numpy
|
2022-04-15 01:41:22 +00:00
|
|
|
, platformdirs
|
2022-08-12 12:06:08 +00:00
|
|
|
, typing-extensions
|
2022-04-15 01:41:22 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytools";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "2023.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-gGN4c9IG9rzt9820atk+horLTqIlbbBS38yocr3QMh8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
|
|
|
numpy
|
2022-04-15 01:41:22 +00:00
|
|
|
platformdirs
|
2022-08-12 12:06:08 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
typing-extensions
|
2022-04-15 01:41:22 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytools"
|
|
|
|
"pytools.batchjob"
|
|
|
|
"pytools.lex"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/inducer/pytools/";
|
|
|
|
description = "Miscellaneous Python lifesavers.";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ artuuge ];
|
|
|
|
};
|
|
|
|
}
|