Skip to content

Commit

Permalink
python312Packages.chess: use pytestCheckHook
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Oct 6, 2024
1 parent 81de557 commit c0cd928
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/development/python-modules/chess/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
lib,
buildPythonPackage,
fetchFromGitHub,
python,
setuptools,
pythonOlder,
pytestCheckHook,
}:

buildPythonPackage rec {
Expand All @@ -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";
Expand Down

0 comments on commit c0cd928

Please sign in to comment.