about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-23 09:25:44 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:52 +0100
commite23712ab688d92dbf4b66955ace49780f596d666 (patch)
tree18d057c24ddfa5a88e92de48bd0b3e6f4ad66ca7
parent3ecc1f94be821fbd7df39e044136914418fdc027 (diff)
downloadnixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar.gz
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar.bz2
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar.lz
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar.xz
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.tar.zst
nixlib-e23712ab688d92dbf4b66955ace49780f596d666.zip
python3Packages.azure-mgmt-msi: fix build
-rw-r--r--pkgs/development/python-modules/azure-mgmt-msi/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-msi/default.nix b/pkgs/development/python-modules/azure-mgmt-msi/default.nix
index 87e70c2fdcc9..328e81c8fe79 100644
--- a/pkgs/development/python-modules/azure-mgmt-msi/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-msi/default.nix
@@ -26,9 +26,10 @@ buildPythonPackage rec {
     azure-mgmt-nspkg
   ];
 
+  # still needed when overriding to previous versions
+  # E.g. azure-cli
   postInstall = lib.optionalString isPy3k ''
-    rm $out/${python.sitePackages}/azure/__init__.py
-    rm $out/${python.sitePackages}/azure/mgmt/__init__.py
+    rm -f $out/${python.sitePackages}/azure/{,mgmt/}__init__.py
   '';
 
   # has no tests