Unverified Commit c0cd9288 authored by natsukium's avatar natsukium
Browse files

python312Packages.chess: use pytestCheckHook

parent 81de557e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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";