From 03e34c09eea3dc8f21bcde01b86d60867fdf30c5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Apr 2022 11:45:29 +0200 Subject: [PATCH] python3Packages.azure-mgmt-storage: disable on older Python releases --- .../azure-mgmt-storage/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-storage/default.nix b/pkgs/development/python-modules/azure-mgmt-storage/default.nix index 10b6cb698df5..8bc69d0c9b72 100644 --- a/pkgs/development/python-modules/azure-mgmt-storage/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-storage/default.nix @@ -3,18 +3,20 @@ , fetchPypi , azure-mgmt-common , azure-mgmt-core -, isPy3k +, pythonOlder }: buildPythonPackage rec { version = "20.0.0"; pname = "azure-mgmt-storage"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-buR2tWIv9vWVTt7m6w2N1CezIXAihVrfHshjPKBM3uI="; + hash = "sha256-buR2tWIv9vWVTt7m6w2N1CezIXAihVrfHshjPKBM3uI="; }; propagatedBuildInputs = [ @@ -22,9 +24,13 @@ buildPythonPackage rec { azure-mgmt-core ]; - pythonNamespaces = [ "azure.mgmt" ]; + pythonNamespaces = [ + "azure.mgmt" + ]; - pythonImportsCheck = [ "azure.mgmt.storage" ]; + pythonImportsCheck = [ + "azure.mgmt.storage" + ]; # has no tests doCheck = false;