From aae4bb317db09e6b61416f488f64c2273c919809 Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Mon, 24 Aug 2026 07:14:01 +0200 Subject: [PATCH] python3Packages.pysptk: enable tests --- .../python-modules/pysptk/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysptk/default.nix b/pkgs/development/python-modules/pysptk/default.nix index eca95a85c866..0fe0152f8b8e 100644 --- a/pkgs/development/python-modules/pysptk/default.nix +++ b/pkgs/development/python-modules/pysptk/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchPypi, cython, + pytestCheckHook, setuptools, decorator, numpy, @@ -35,8 +36,20 @@ buildPythonPackage (finalAttrs: { standard-pkg-resources ]; - # Tests are not part of the PyPI releases - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; + + # Remove source to prevent the tests from trying to import it + preCheck = '' + rm -r pysptk + ''; + + disabledTests = [ + # These tests rely on test data not present in the pypi release + "test_rapt_regression" + "test_swipe_regression" + ]; pythonImportsCheck = [ "pysptk" ];