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