summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/azure-common/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/azure-common/default.nix')
-rw-r--r--pkgs/development/python-modules/azure-common/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/azure-common/default.nix b/pkgs/development/python-modules/azure-common/default.nix
index 504748f033ff..47d0039e5e4b 100644
--- a/pkgs/development/python-modules/azure-common/default.nix
+++ b/pkgs/development/python-modules/azure-common/default.nix
@@ -23,7 +23,7 @@ buildPythonPackage rec {
azure-nspkg
] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
- postInstall = if isPy3k then "" else ''
+ postInstall = lib.optionalString (!isPy3k) ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
'';