From 301bd592415f0d762d37a4d172740eadadf94ef9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 5 Oct 2024 03:42:23 +0000 Subject: [PATCH 1/3] python312Packages.chess: 1.10.0 -> 1.11.0 --- pkgs/development/python-modules/chess/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/chess/default.nix b/pkgs/development/python-modules/chess/default.nix index 50cb9306969f..f76a17eebec2 100644 --- a/pkgs/development/python-modules/chess/default.nix +++ b/pkgs/development/python-modules/chess/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "chess"; - version = "1.10.0"; + version = "1.11.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "niklasf"; repo = "python-${pname}"; rev = "refs/tags/v${version}"; - hash = "sha256-jfPg1W9Qp0DlAbMXaFqZ6Ri2zMOW6EKUHwi7Azn/yl0="; + hash = "sha256-+YNEm1QppXeeIjOKfCSQoQmuSzBsW4ws0ej/whjTAPg="; }; pythonImportsCheck = [ "chess" ]; From 81de557e0798c693a975965770ce2844f7483b21 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 6 Oct 2024 15:34:16 +0900 Subject: [PATCH 2/3] python312Packages.chess: switch to pypa builder --- pkgs/development/python-modules/chess/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/chess/default.nix b/pkgs/development/python-modules/chess/default.nix index f76a17eebec2..0162097baa15 100644 --- a/pkgs/development/python-modules/chess/default.nix +++ b/pkgs/development/python-modules/chess/default.nix @@ -3,13 +3,14 @@ buildPythonPackage, fetchFromGitHub, python, + setuptools, pythonOlder, }: buildPythonPackage rec { pname = "chess"; version = "1.11.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -20,6 +21,8 @@ buildPythonPackage rec { hash = "sha256-+YNEm1QppXeeIjOKfCSQoQmuSzBsW4ws0ej/whjTAPg="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "chess" ]; checkPhase = '' From c0cd9288883941db7d924d93b976436c8ee7afe5 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 6 Oct 2024 15:35:04 +0900 Subject: [PATCH 3/3] 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";