python312Packages.pytools: add siphash24 support

This commit is contained in:
qbisi
2025-03-03 04:09:16 +08:00
parent 190100c498
commit 8cb1bbd47d
@@ -8,6 +8,7 @@
pytestCheckHook,
pythonOlder,
typing-extensions,
siphash24,
}:
buildPythonPackage rec {
@@ -31,10 +32,12 @@ buildPythonPackage rec {
optional-dependencies = {
numpy = [ numpy ];
# siphash = [ siphash ];
siphash = [ siphash24 ];
};
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
] ++ optional-dependencies.siphash;
pythonImportsCheck = [
"pytools"
@@ -42,14 +45,6 @@ buildPythonPackage rec {
"pytools.lex"
];
disabledTests = [
# siphash is not available
"test_class_hashing"
"test_dataclass_hashing"
"test_datetime_hashing"
"test_hash_function"
];
meta = {
description = "Miscellaneous Python lifesavers";
homepage = "https://github.com/inducer/pytools/";