2025-07-17 09:24:09 +00:00

56 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
numpy,
platformdirs,
pytestCheckHook,
pythonOlder,
typing-extensions,
siphash24,
}:
buildPythonPackage rec {
pname = "pytools";
version = "2025.2.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-iOxR2SM7CisJNe1/FTRX7nDf0xpaCuQA8/xs3K8tQ90=";
};
build-system = [ hatchling ];
dependencies = [
platformdirs
siphash24
typing-extensions
];
optional-dependencies = {
numpy = [ numpy ];
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytools"
"pytools.batchjob"
"pytools.lex"
];
meta = {
description = "Miscellaneous Python lifesavers";
homepage = "https://github.com/inducer/pytools/";
changelog = "https://github.com/inducer/pytools/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ artuuge ];
};
}