From 765a1ab24b170cbfa59330ae24a95dc1cf5b5871 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 Feb 2023 06:13:01 +0000 Subject: [PATCH 1/3] python310Packages.azure-mgmt-containerregistry: 10.0.0 -> 10.1.0 --- .../python-modules/azure-mgmt-containerregistry/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix index dc86f5acd738..433635b29e41 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix @@ -6,13 +6,13 @@ }: buildPythonPackage rec { - version = "10.0.0"; + version = "10.1.0"; pname = "azure-mgmt-containerregistry"; disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "sha256-HjejK28Em5AeoQ20o4fucnXTlAwADF/SEpVfHn9anZk="; + sha256 = "sha256-VrX9YfYNvlA8+eNqHCp35BAeQZzQKakZs7ZZKwT8oYc="; extension = "zip"; }; From 25aa98a67a2a2c8d2cb13c50b62825dd0e2738bd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Feb 2023 08:12:41 +0100 Subject: [PATCH 2/3] python310Packages.azure-mgmt-containerregistry: disable on unsupported Python releases --- .../azure-mgmt-containerregistry/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix index 433635b29e41..2d312ba3e7a5 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix @@ -1,4 +1,7 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder , azure-common , azure-mgmt-core , msrest @@ -6,9 +9,11 @@ }: buildPythonPackage rec { - version = "10.1.0"; pname = "azure-mgmt-containerregistry"; - disabled = isPy27; + version = "10.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; From ec0589328603824881ff25181ac749c35709d9b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Feb 2023 08:15:02 +0100 Subject: [PATCH 3/3] python310Packages.azure-mgmt-containerregistry: adjust inputs --- .../azure-mgmt-containerregistry/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix index 2d312ba3e7a5..f75b262df3a0 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix @@ -5,7 +5,7 @@ , azure-common , azure-mgmt-core , msrest -, msrestazure +, typing-extensions }: buildPythonPackage rec { @@ -17,16 +17,25 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "sha256-VrX9YfYNvlA8+eNqHCp35BAeQZzQKakZs7ZZKwT8oYc="; + hash = "sha256-VrX9YfYNvlA8+eNqHCp35BAeQZzQKakZs7ZZKwT8oYc="; extension = "zip"; }; - propagatedBuildInputs = [ azure-common azure-mgmt-core msrest msrestazure ]; + propagatedBuildInputs = [ + azure-common + azure-mgmt-core + msrest + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + ]; # no tests included doCheck = false; - pythonImportsCheck = [ "azure.common" "azure.mgmt.containerregistry" ]; + pythonImportsCheck = [ + "azure.common" + "azure.mgmt.containerregistry" + ]; meta = with lib; { description = "Microsoft Azure Container Registry Client Library for Python";