From 4cf4be7ac60c9e63f86f75b425ce08b2882a9bbf Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Mon, 23 Dec 2019 09:21:39 -0800 Subject: [PATCH] python3Packages.azure-mgmt-consumption: fix build --- .../python-modules/azure-mgmt-consumption/default.nix | 5 +++-- 1 file 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