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