pythonPackages.azure-mgmt-common: refactor

sha differs from what is offered via pip, echo statement no longer
necessary, updated metadata
This commit is contained in:
Max Wilson 2019-04-29 17:17:22 -04:00 committed by Wael M. Nasreddine
parent 53d9338c9e
commit b0403da859
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F

View File

@ -6,6 +6,7 @@
, azure-mgmt-nspkg
, requests
, msrestazure
, isPy3k
}:
buildPythonPackage rec {
@ -15,20 +16,26 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "1rmzpz3733wv31rsnqpdy4bbafvk5dhbqx7q0xf62dlz7p0i4f66";
sha256 = "c63812c13d9f36615c07f874bc602b733bb516f1ed62ab73189b8f71c6bfbfe6";
};
propagatedBuildInputs = [ azure-common azure-mgmt-nspkg requests msrestazure ];
propagatedBuildInputs = [
azure-common
azure-mgmt-nspkg
requests
msrestazure
];
postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
postInstall = if isPy3k then "" else ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
'';
doCheck = false;
meta = with pkgs.lib; {
description = "Microsoft Azure SDK for Python";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.asl20;
maintainers = with maintainers; [ olcai ];
description = "This is the Microsoft Azure Resource Management common code";
homepage = https://pypi.org/project/azure-mgmt-common;
license = licenses.mit;
maintainers = with maintainers; [ olcai mwilsoninsight ];
};
}