From 1d23401a4c3b50b60e09e17b883a279923bd9618 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 24 Jul 2026 20:55:30 +0700 Subject: [PATCH] python3Packages.textdistance: enable tests --- .../python-modules/textdistance/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/textdistance/default.nix b/pkgs/development/python-modules/textdistance/default.nix index 7a7ece1d97fe..7c01f93ae7ed 100644 --- a/pkgs/development/python-modules/textdistance/default.nix +++ b/pkgs/development/python-modules/textdistance/default.nix @@ -3,6 +3,9 @@ buildPythonPackage, fetchPypi, setuptools, + pytestCheckHook, + hypothesis, + numpy, }: buildPythonPackage (finalAttrs: { @@ -20,8 +23,13 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - # There aren't tests - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + numpy + ]; + + disabledTestPaths = [ "tests/test_external.py" ]; pythonImportsCheck = [ "textdistance" ];