git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.azure-loganalytics: fix python3 namespace
commita7057501e22a31e62901d7345c7aea465525f6d3 authorJonathan Ringer <jonringer117@gmail.com> dateSun 1 Dec 2019, 14:24 (7 years ago) parentbb10135
1 file changed+7−1
pkgs/development/python-modules/azure-loganalytics/default.nix+7−1
pkgs/development/python-modules/azure-loganalytics/default.nix+7−1
@@ -1,6 +1,8 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4+, python
5+, isPy3k
46, msrest
57, azure-common
68}:
@@ -20,6 +22,10 @@ buildPythonPackage rec {
2022 azure-common
2123 ];
2224
25+ postInstall = lib.optionalString isPy3k ''
26+ rm -rf $out/${python.sitePackages}/azure/__init__.py
27+ '';
28+
2329 # has no tests
2430 doCheck = false;
2531
@@ -27,6 +33,6 @@ buildPythonPackage rec {
2733 description = "This is the Microsoft Azure Log Analytics Client Library";
2834 homepage = "https://github.com/Azure/azure-sdk-for-python";
2935 license = licenses.mit;
30− maintainers = with maintainers; [ mwilsoninsight ];
36+ maintainers = with maintainers; [ mwilsoninsight jonringer ];
3137 };
3238}