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

This commit is contained in:
Fabian Affolter 2022-10-21 09:34:41 +02:00 committed by GitHub
parent 73892e750c
commit fed3280a7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,36 +1,43 @@
{ pkgs { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, azure-mgmt-core , azure-mgmt-core
, azure-mgmt-common , azure-mgmt-common
, isPy3k , msrest
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "21.2.1";
pname = "azure-mgmt-resource"; pname = "azure-mgmt-resource";
disabled = !isPy3k; version = "21.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "sha256-vSBg1WOT/+Ykao8spn51Tt0D7Ae5dWMLMK4DqIYFl6c="; hash = "sha256-vSBg1WOT/+Ykao8spn51Tt0D7Ae5dWMLMK4DqIYFl6c=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-mgmt-common azure-mgmt-common
azure-mgmt-core azure-mgmt-core
msrest
]; ];
# has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonNamespaces = [ "azure.mgmt" ]; pythonNamespaces = [
"azure.mgmt"
];
pythonImportsCheck = [ "azure.mgmt.resource" ]; pythonImportsCheck = [
"azure.mgmt.resource"
];
meta = with pkgs.lib; { meta = with lib; {
description = "Microsoft Azure SDK for Python"; description = "Microsoft Azure SDK for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python"; homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit; license = licenses.mit;