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:
parent
53d9338c9e
commit
b0403da859
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user