1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

python3Packages.azure-keyvault: fix build

This commit is contained in:
Jonathan Ringer 2019-12-20 21:14:09 -08:00 committed by Frederik Rietdijk
parent 4596a70fc4
commit aaee618c2b

View file

@ -1,18 +1,12 @@
{ lib
, buildPythonPackage
, python
, isPy3k
, fetchPypi
, azure-common
, azure-nspkg
, msrest
, msrestazure
, cryptography
{ lib, buildPythonPackage, isPy27, fetchPypi
, azure-keyvault-keys
, azure-keyvault-secrets
}:
buildPythonPackage rec {
pname = "azure-keyvault";
version = "4.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
@ -21,24 +15,22 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
azure-common
azure-nspkg
msrest
msrestazure
cryptography
azure-keyvault-keys
azure-keyvault-secrets
];
postInstall = lib.optionalString isPy3k ''
rm $out/${python.sitePackages}/azure/__init__.py
'';
# has no tests
# this is just a meta package, which contains keys and secrets
doCheck = false;
pythonImportsCheck = [
"azure.keyvault.keys"
"azure.keyvault.secrets"
];
meta = with lib; {
description = "This is the Microsoft Azure Key Vault Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ mwilsoninsight ];
maintainers = with maintainers; [ jonringer ];
};
}