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