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

This commit is contained in:
Fabian Affolter 2022-03-15 16:12:32 +01:00 committed by GitHub
parent b2209b43b4
commit f579bb7756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, azure-common
, azure-mgmt-core
, msrest
@ -6,13 +9,14 @@
}:
buildPythonPackage rec {
version = "7.0.0";
pname = "azure-mgmt-netapp";
disabled = isPy27;
version = "7.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ziaddG+6MoPG18OYZyQ9HRx8nfGsz2UbWPC1pWacKto=";
hash = "sha256-ziaddG+6MoPG18OYZyQ9HRx8nfGsz2UbWPC1pWacKto=";
extension = "zip";
};
@ -26,7 +30,10 @@ buildPythonPackage rec {
# no tests included
doCheck = false;
pythonImportsCheck = [ "azure.common" "azure.mgmt.netapp" ];
pythonImportsCheck = [
"azure.common"
"azure.mgmt.netapp"
];
meta = with lib; {
description = "Microsoft Azure NetApp Files Management Client Library for Python";