From 8cb1bbd47d36db0e18ddf64e44f5342e7a9ab2de Mon Sep 17 00:00:00 2001 From: qbisi Date: Mon, 3 Mar 2025 02:02:06 +0800 Subject: [PATCH] python312Packages.pytools: add siphash24 support --- .../python-modules/pytools/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pytools/default.nix b/pkgs/development/python-modules/pytools/default.nix index af359bda26b2..def5b583843a 100644 --- a/pkgs/development/python-modules/pytools/default.nix +++ b/pkgs/development/python-modules/pytools/default.nix @@ -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/";