python312Packages.chess: use pytestCheckHook

This commit is contained in:
natsukium
2024-10-06 15:35:04 +09:00
parent 81de557e07
commit c0cd928888
@@ -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";