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

This commit is contained in:
Fabian Affolter 2022-06-21 23:49:27 +02:00 committed by GitHub
parent 6c99b09ac1
commit 6683007e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,18 +5,20 @@
, msrestazure
, azure-common
, azure-mgmt-core
, azure-mgmt-nspkg
, isPy3k
, pythonOlder
}:
buildPythonPackage rec {
pname = "azure-mgmt-eventgrid";
version = "10.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-jJ+gvJmOTz2YXQ9BDrFgXCybplgwvOYZ5Gv7FHLhxQA=";
hash = "sha256-jJ+gvJmOTz2YXQ9BDrFgXCybplgwvOYZ5Gv7FHLhxQA=";
};
propagatedBuildInputs = [
@ -24,13 +26,14 @@ buildPythonPackage rec {
msrestazure
azure-mgmt-core
azure-common
] ++ lib.optionals (!isPy3k) [
azure-mgmt-nspkg
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "azure.mgmt.eventgrid" ];
pythonImportsCheck = [
"azure.mgmt.eventgrid"
];
meta = with lib; {
description = "This is the Microsoft Azure EventGrid Management Client Library";