python3Packages.azure-mgmt-storage: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-07 11:45:29 +02:00 committed by GitHub
parent 8e8d60fea8
commit 03e34c09ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;