pythonPackages.azure-mgmt-devtestlabs: fix python3 namespace
This commit is contained in:
parent
370dbf1ef5
commit
af3b325eff
@ -1,11 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, python
|
||||||
|
, isPy3k
|
||||||
, msrest
|
, msrest
|
||||||
, msrestazure
|
, msrestazure
|
||||||
, azure-common
|
, azure-common
|
||||||
, azure-mgmt-nspkg
|
, azure-mgmt-nspkg
|
||||||
, isPy3k
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -26,6 +27,11 @@ buildPythonPackage rec {
|
|||||||
azure-mgmt-nspkg
|
azure-mgmt-nspkg
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString isPy3k ''
|
||||||
|
rm $out/${python.sitePackages}/azure/__init__.py
|
||||||
|
rm $out/${python.sitePackages}/azure/mgmt/__init__.py
|
||||||
|
'';
|
||||||
|
|
||||||
# has no tests
|
# has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -33,6 +39,6 @@ buildPythonPackage rec {
|
|||||||
description = "This is the Microsoft Azure DevTestLabs Management Client Library";
|
description = "This is the Microsoft Azure DevTestLabs Management Client Library";
|
||||||
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ mwilsoninsight ];
|
maintainers = with maintainers; [ jonringer mwilsoninsight ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user