From c0cd9288883941db7d924d93b976436c8ee7afe5 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 6 Oct 2024 15:35:04 +0900 Subject: [PATCH] python312Packages.chess: use pytestCheckHook --- pkgs/development/python-modules/chess/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/chess/default.nix b/pkgs/development/python-modules/chess/default.nix index 0162097baa15..81f990fe75bb 100644 --- a/pkgs/development/python-modules/chess/default.nix +++ b/pkgs/development/python-modules/chess/default.nix @@ -2,9 +2,9 @@ lib, buildPythonPackage, fetchFromGitHub, - python, setuptools, pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +25,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "chess" ]; - checkPhase = '' - ${python.interpreter} ./test.py -v - ''; + nativeCheckInputs = [ pytestCheckHook ]; + + pytestFlagsArray = [ "test.py" ]; meta = with lib; { description = "Chess library with move generation, move validation, and support for common formats";