python310Packages.azure-mgmt-network: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-05-11 08:36:03 +02:00 committed by GitHub
parent 2cd74fc154
commit 7d045a76dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,18 +5,20 @@
, azure-mgmt-core
, msrest
, msrestazure
, isPy3k
, pythonOlder
}:
buildPythonPackage rec {
version = "20.0.0";
pname = "azure-mgmt-network";
disabled = !isPy3k;
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY=";
hash = "sha256-mnjPyCAJ+rlNgZ4umSYjfVVVg83EobZYY/zupyDjdoY=";
};
propagatedBuildInputs = [
@ -26,12 +28,16 @@ buildPythonPackage rec {
msrestazure
];
# has no tests
# Module has no tests
doCheck = false;
pythonNamespaces = [ "azure.mgmt" ];
pythonNamespaces = [
"azure.mgmt"
];
pythonImportsCheck = [ "azure.mgmt.network" ];
pythonImportsCheck = [
"azure.mgmt.network"
];
meta = with lib; {
description = "Microsoft Azure SDK for Python";