From e62eb7cbbe5da9d022d07d09b049ee61ce5b91a3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 1 Jul 2023 15:32:23 +0000 Subject: [PATCH 1/2] python311Packages.crc: 4.2.0 -> 4.3.0 --- pkgs/development/python-modules/crc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/crc/default.nix b/pkgs/development/python-modules/crc/default.nix index 6117ad4c5aea..16f04f180e45 100644 --- a/pkgs/development/python-modules/crc/default.nix +++ b/pkgs/development/python-modules/crc/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "crc"; - version = "4.2.0"; + version = "4.3.0"; format = "pyproject"; src = fetchFromGitHub { owner = "Nicoretti"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-h/RVMIJX+Lyted0FHNBcKY54EiirSclkBXCpAQSATq8="; + hash = "sha256-rH/jc6/gxww3NSCYrhu+InZX1HTTdJFfa52ioU8AclY="; }; nativeBuildInputs = [ poetry-core ]; From 96ac17cf98a3b150f4c2ce58faad250241615731 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 1 Jul 2023 20:30:03 +0200 Subject: [PATCH 2/2] python311Packages.crc: disable on unsupported Python releases - update ordering --- .../python-modules/crc/default.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/crc/default.nix b/pkgs/development/python-modules/crc/default.nix index 16f04f180e45..eee1f058366f 100644 --- a/pkgs/development/python-modules/crc/default.nix +++ b/pkgs/development/python-modules/crc/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , poetry-core , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { @@ -10,6 +11,8 @@ buildPythonPackage rec { version = "4.3.0"; format = "pyproject"; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "Nicoretti"; repo = pname; @@ -17,13 +20,21 @@ buildPythonPackage rec { hash = "sha256-rH/jc6/gxww3NSCYrhu+InZX1HTTdJFfa52ioU8AclY="; }; - nativeBuildInputs = [ poetry-core ]; + nativeBuildInputs = [ + poetry-core + ]; - pythonImportsCheck = [ "crc" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ + "crc" + ]; - disabledTestPaths = [ "test/bench" ]; + disabledTestPaths = [ + "test/bench" + ]; meta = with lib; { changelog = "https://github.com/Nicoretti/crc/releases/tag/${version}";