about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-23 09:02:46 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:52 +0100
commit5c100b163d86e5e257f90aa2804aaae92f824b54 (patch)
tree54e49788da000bcccd8667b7ce2266242876c941
parentd5b0c114a3648078fe6422ac90c119d03a8f66aa (diff)
downloadnixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar.gz
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar.bz2
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar.lz
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar.xz
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.tar.zst
nixlib-5c100b163d86e5e257f90aa2804aaae92f824b54.zip
pythonPackages.azure-mgmt-servicefabric: fix build
-rw-r--r--pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix b/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
index 9c849829a127..03084e11cf3f 100644
--- a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
@@ -26,9 +26,10 @@ buildPythonPackage rec {
     azure-mgmt-nspkg
   ];
 
+  # this is still needed for 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