summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-12-23 09:25:34 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-12-30 16:46:52 +0100
commit3ecc1f94be821fbd7df39e044136914418fdc027 (patch)
treeec558de02c81befac0c2c4863065f7651cc1d9f8
parentpython3Packages.azure-mgmt-datamigration: fix build (diff)
downloadnixpkgs-3ecc1f94be821fbd7df39e044136914418fdc027.tar.gz
python3Packages.azure-mgmt-devtestlabs: fix build
-rw-r--r--pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix
index 546ec5ab8405..756af164a719 100644
--- a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix
@@ -27,9 +27,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