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