summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-mgmt-dns
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-23 09:16:03 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:52 +0100
commita1227914e1685b0660907c07e5b51dee84c9180d (patch)
treed5ab0ededce34513052e3d94432dd1cf266fc4cf /pkgs/development/python-modules/azure-mgmt-dns
parent5c100b163d86e5e257f90aa2804aaae92f824b54 (diff)
downloadnixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar.gz
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar.bz2
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar.lz
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar.xz
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.tar.zst
nixpkgs-a1227914e1685b0660907c07e5b51dee84c9180d.zip
python3Packages.azure-mgmt-dns: fix build
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-dns')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-dns/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-dns/default.nix b/pkgs/development/python-modules/azure-mgmt-dns/default.nix
index 89ae5912b39..0f1527f688b 100644
--- a/pkgs/development/python-modules/azure-mgmt-dns/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-dns/default.nix
@@ -26,9 +26,10 @@ buildPythonPackage rec {
     azure-mgmt-nspkg
   ];
 
+  # this is still needed for when the version is overrided
+  # 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