about summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-consumption
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-23 09:21:39 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:52 +0100
commit4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf (patch)
treef575832e61745abd9a586f5cf5f3ae22ca60631b /pkgs/development/python-modules/azure-mgmt-consumption
parent4e8b34cc5e8951f4a4012fb42baf2df240b061d6 (diff)
downloadnixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar.gz
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar.bz2
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar.lz
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar.xz
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.tar.zst
nixlib-4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf.zip
python3Packages.azure-mgmt-consumption: fix build
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-consumption')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-consumption/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix
index b69e4b649deb..de4a1338611d 100644
--- a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix
@@ -24,9 +24,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