From 359efceeed8f045ebf09a3a5c1c7029eee23ac16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 25 Oct 2025 20:12:09 -0700 Subject: [PATCH] python3Packages.monotonic-alignment-search: run tests --- .../monotonic-alignment-search/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/monotonic-alignment-search/default.nix b/pkgs/development/python-modules/monotonic-alignment-search/default.nix index 552ba96f80af..261a53d33b6c 100644 --- a/pkgs/development/python-modules/monotonic-alignment-search/default.nix +++ b/pkgs/development/python-modules/monotonic-alignment-search/default.nix @@ -6,10 +6,13 @@ # build-system setuptools, cython, - numpy_2, + numpy, # dependencies torch, + + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -27,14 +30,17 @@ buildPythonPackage rec { build-system = [ setuptools cython - numpy_2 + numpy ]; dependencies = [ + numpy torch ]; - enabledTestPaths = [ "tests" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "monotonic_alignment_search" ];