2018-10-10 17:25:27 +01:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, azure-common
|
|
|
|
, azure-mgmt-nspkg
|
|
|
|
, requests
|
2018-12-19 23:10:19 +00:00
|
|
|
, msrestazure
|
2019-04-29 22:17:22 +01:00
|
|
|
, isPy3k
|
2018-10-10 17:25:27 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.20.0";
|
|
|
|
pname = "azure-mgmt-common";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2019-04-29 22:17:22 +01:00
|
|
|
sha256 = "c63812c13d9f36615c07f874bc602b733bb516f1ed62ab73189b8f71c6bfbfe6";
|
2018-10-10 17:25:27 +01:00
|
|
|
};
|
|
|
|
|
2019-04-29 22:17:22 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-common
|
|
|
|
azure-mgmt-nspkg
|
|
|
|
requests
|
|
|
|
msrestazure
|
|
|
|
];
|
2018-10-10 17:25:27 +01:00
|
|
|
|
2019-04-29 22:17:22 +01:00
|
|
|
postInstall = if isPy3k then "" else ''
|
2018-10-10 17:25:27 +01:00
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
2019-09-14 01:37:55 +01:00
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
2018-10-10 17:25:27 +01:00
|
|
|
'';
|
|
|
|
|
2019-04-29 22:17:22 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-10 17:25:27 +01:00
|
|
|
meta = with pkgs.lib; {
|
2019-04-29 22:17:22 +01:00
|
|
|
description = "This is the Microsoft Azure Resource Management common code";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 22:17:22 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ olcai mwilsoninsight ];
|
2018-10-10 17:25:27 +01:00
|
|
|
};
|
|
|
|
}
|