From 301d2c810d0f2695b5abf79ae53ab9c9ebdb11c4 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Thu, 22 May 2025 15:46:56 +0200 Subject: [PATCH] python313Packages.apsw: switch test suite Signed-off-by: Florian Brandes Co-authored-by: Martin Weinelt --- .../python-modules/apsw/default.nix | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/apsw/default.nix b/pkgs/development/python-modules/apsw/default.nix index ba376163a7e8..1846517a448f 100644 --- a/pkgs/development/python-modules/apsw/default.nix +++ b/pkgs/development/python-modules/apsw/default.nix @@ -1,10 +1,8 @@ { - stdenv, lib, buildPythonPackage, fetchFromGitHub, pythonOlder, - pytestCheckHook, setuptools, sqlite, }: @@ -27,19 +25,13 @@ buildPythonPackage rec { buildInputs = [ sqlite ]; - nativeCheckInputs = [ pytestCheckHook ]; - - pytestFlagsArray = [ "apsw/tests.py" ]; - - disabledTests = [ - # we don't build the test extension - "testLoadExtension" - "testShell" - "testVFS" - "testVFSWithWAL" - # no lines in errout.txt - "testWriteUnraisable" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "testzzForkChecker" ]; + # apsw explicitly doesn't use pytest + # see https://github.com/rogerbinns/apsw/issues/548#issuecomment-2891633403 + checkPhase = '' + runHook preCheck + python -m apsw.tests + runHook postCheck + ''; pythonImportsCheck = [ "apsw" ];