python310Packages.azure-mgmt-resource: disable on older Python releases
This commit is contained in:
parent
73892e750c
commit
fed3280a7d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user