mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
47 lines
840 B
Nix
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 ];
|
|
};
|
|
}
|