python3Packages.azure-mgmt-media: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-31 10:29:56 +02:00 committed by GitHub
parent 7e7624c0db
commit dd39ce1e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,17 +6,20 @@
, azure-common , azure-common
, azure-mgmt-core , azure-mgmt-core
, azure-mgmt-nspkg , azure-mgmt-nspkg
, isPy3k , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-mgmt-media"; pname = "azure-mgmt-media";
version = "9.0.0"; version = "9.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM="; hash = "sha256-TI7l8sSQ2QUgPqiE3Cu/F67Wna+KHbQS3fuIjOb95ZM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -24,14 +27,14 @@ buildPythonPackage rec {
msrestazure msrestazure
azure-common azure-common
azure-mgmt-core azure-mgmt-core
] ++ lib.optionals (!isPy3k) [
azure-mgmt-nspkg
]; ];
# has no tests # has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "azure.mgmt.media" ]; pythonImportsCheck = [
"azure.mgmt.media"
];
meta = with lib; { meta = with lib; {
description = "This is the Microsoft Azure Media Services Client Library"; description = "This is the Microsoft Azure Media Services Client Library";