From 207046d06601532806e0e3167b49a75d99c59561 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 23 Oct 2019 03:01:41 -0700 Subject: [PATCH] pythonPackages.azure-keyvault: fix python3 namespace --- pkgs/development/python-modules/azure-keyvault/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/azure-keyvault/default.nix b/pkgs/development/python-modules/azure-keyvault/default.nix index 1c4f9f4ee80..91f31ec0a01 100644 --- a/pkgs/development/python-modules/azure-keyvault/default.nix +++ b/pkgs/development/python-modules/azure-keyvault/default.nix @@ -1,5 +1,7 @@ { lib , buildPythonPackage +, python +, isPy3k , fetchPypi , azure-common , azure-nspkg @@ -26,6 +28,10 @@ buildPythonPackage rec { cryptography ]; + postInstall = lib.optionalString isPy3k '' + rm $out/${python.sitePackages}/azure/__init__.py + ''; + # has no tests doCheck = false;