From 1f5ce9e0b09026f2d88f550bcdbbe119be71d4b5 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 19 Jan 2023 15:22:42 +0800 Subject: [PATCH 1/2] python3Packages.sure: disable test on python 3.11 or later As `rednose`, the check input, does not support python 3.11 --- pkgs/development/python-modules/sure/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/sure/default.nix b/pkgs/development/python-modules/sure/default.nix index 84cc78e8a4a8..7e142898f624 100644 --- a/pkgs/development/python-modules/sure/default.nix +++ b/pkgs/development/python-modules/sure/default.nix @@ -5,6 +5,7 @@ , six , mock , isPyPy +, pythonOlder , fetchpatch }: @@ -26,8 +27,9 @@ buildPythonPackage rec { }) ]; - buildInputs = [ rednose ]; propagatedBuildInputs = [ six mock ]; + checkInputs = [ rednose ]; + doCheck = pythonOlder "3.11"; meta = with lib; { description = "Utility belt for automated testing"; From 92355593ce58fd0f2cfcb9b88802f4db6e2772a0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 19 Jan 2023 08:37:28 +0100 Subject: [PATCH 2/2] python3Packages.sure: add changelog to meta - add pythonImportsCheck --- .../python-modules/sure/default.nix | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/sure/default.nix b/pkgs/development/python-modules/sure/default.nix index 7e142898f624..e9fba4e4b4c0 100644 --- a/pkgs/development/python-modules/sure/default.nix +++ b/pkgs/development/python-modules/sure/default.nix @@ -12,6 +12,8 @@ buildPythonPackage rec { pname = "sure"; version = "2.0.0"; + format = "setuptools"; + disabled = isPyPy; src = fetchPypi { @@ -27,14 +29,26 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ six mock ]; - checkInputs = [ rednose ]; + propagatedBuildInputs = [ + six + mock + ]; + + checkInputs = [ + rednose + ]; + doCheck = pythonOlder "3.11"; + pythonImportsCheck = [ + "sure" + ]; + meta = with lib; { description = "Utility belt for automated testing"; - homepage = "https://sure.readthedocs.io/en/latest/"; + homepage = "https://sure.readthedocs.io/"; + changelog = "https://github.com/gabrielfalcao/sure/blob/${version}/CHANGELOG.md"; license = licenses.gpl3Plus; + maintainers = with maintainers; [ ]; }; - }