From 9d499eb9c263d7083fe46cc271c8d6b6cac28266 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Tue, 21 Jul 2026 01:13:22 +0200 Subject: [PATCH] python3Packages.extras: enable tests --- pkgs/development/python-modules/extras/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/extras/default.nix b/pkgs/development/python-modules/extras/default.nix index eea0fcc57049..a7fd5bbdb958 100644 --- a/pkgs/development/python-modules/extras/default.nix +++ b/pkgs/development/python-modules/extras/default.nix @@ -3,6 +3,8 @@ buildPythonPackage, fetchPypi, setuptools, + pytestCheckHook, + testtools, }: buildPythonPackage (finalAttrs: { @@ -17,8 +19,15 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - # error: invalid command 'test' - doCheck = false; + preCheck = '' + substituteInPlace extras/tests/test_extras.py \ + --replace-fail "assertEquals(" "assertEqual(" + ''; + + nativeCheckInputs = [ + pytestCheckHook + testtools + ]; meta = { description = "Useful extra bits for Python - things that should be in the standard library";