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";