python3Packages.azure-keyvault-keys: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-29 12:10:39 +02:00 committed by Jonathan Ringer
parent 1a718a1677
commit 388382de81

View file

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, isPy27, fetchPypi { lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp , aiohttp
, azure-common , azure-common
, azure-core , azure-core
@ -10,12 +13,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-keyvault-keys"; pname = "azure-keyvault-keys";
version = "4.5.0"; version = "4.5.0";
disabled = isPy27; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; extension = "zip";
sha256 = "sha256-x1AhiARXZXcky3A+DJXoCrvkqsonlkgdrdr6es/VY3s="; hash = "sha256-x1AhiARXZXcky3A+DJXoCrvkqsonlkgdrdr6es/VY3s=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -25,11 +30,17 @@ buildPythonPackage rec {
cryptography cryptography
]; ];
pythonNamespaces = [ "azure.keyvault" ]; checkInputs = [
aiohttp
pytestCheckHook
];
pythonNamespaces = [
"azure.keyvault"
];
# requires relative paths to utilities in the mono-repo # requires relative paths to utilities in the mono-repo
doCheck = false; doCheck = false;
checkInputs = [ aiohttp pytestCheckHook ];
pythonImportsCheck = [ pythonImportsCheck = [
"azure" "azure"