From aaee618c2b91287c72722e9807b55b5c7157b2e0 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Fri, 20 Dec 2019 21:14:09 -0800 Subject: [PATCH] python3Packages.azure-keyvault: fix build --- .../python-modules/azure-keyvault/default.nix | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/azure-keyvault/default.nix b/pkgs/development/python-modules/azure-keyvault/default.nix index 006015646ee0..b6f7f1d70d49 100644 --- a/pkgs/development/python-modules/azure-keyvault/default.nix +++ b/pkgs/development/python-modules/azure-keyvault/default.nix @@ -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 ]; }; }