From 82c13f17a39c056deb6498cd400e95ee8389cddf Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 30 Mar 2022 21:16:00 +0000 Subject: [PATCH 1/2] python310Packages.plac: 1.3.4 -> 1.3.5 --- pkgs/development/python-modules/plac/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/plac/default.nix b/pkgs/development/python-modules/plac/default.nix index 3d2094263b6f..912d0dc8b88b 100644 --- a/pkgs/development/python-modules/plac/default.nix +++ b/pkgs/development/python-modules/plac/default.nix @@ -5,11 +5,11 @@ }: buildPythonPackage rec { pname = "plac"; - version = "1.3.4"; + version = "1.3.5"; src = fetchPypi { inherit pname version; - sha256 = "c91a4c9f9cc67c7e7213b6823b0ea15cd0afe5eaf8f8dda1fe5cb10192b137f5"; + sha256 = "sha256-OL3YZNBFD7dIGTqoF7nEWKj1MZ+/l7ImEVHPwKWBIJA="; }; checkPhase = '' From d60bab9d7ac572a85bef7061fa60b0b8f6118a26 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 31 Mar 2022 09:10:35 +0200 Subject: [PATCH 2/2] python3Packages.plac: disable on older Python releases --- pkgs/development/python-modules/plac/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/plac/default.nix b/pkgs/development/python-modules/plac/default.nix index 912d0dc8b88b..4c353ab7a4e7 100644 --- a/pkgs/development/python-modules/plac/default.nix +++ b/pkgs/development/python-modules/plac/default.nix @@ -2,14 +2,19 @@ , buildPythonPackage , fetchPypi , python +, pythonOlder }: + buildPythonPackage rec { pname = "plac"; version = "1.3.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-OL3YZNBFD7dIGTqoF7nEWKj1MZ+/l7ImEVHPwKWBIJA="; + hash = "sha256-OL3YZNBFD7dIGTqoF7nEWKj1MZ+/l7ImEVHPwKWBIJA="; }; checkPhase = '' @@ -17,6 +22,10 @@ buildPythonPackage rec { ${python.interpreter} -m unittest discover -p "*test_plac*" ''; + pythonImportsCheck = [ + "plac" + ]; + meta = with lib; { description = "Parsing the Command Line the Easy Way"; homepage = "https://github.com/micheles/plac";