parent
1f646188a2
commit
7d3b962876
@ -1,36 +1,39 @@ |
||||
{ pkgs |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, python |
||||
, azure-mgmt-core |
||||
, azure-mgmt-common |
||||
, isPy3k |
||||
}: |
||||
|
||||
|
||||
buildPythonPackage rec { |
||||
version = "10.2.0"; |
||||
version = "15.0.0"; |
||||
pname = "azure-mgmt-resource"; |
||||
disabled = !isPy3k; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
extension = "zip"; |
||||
sha256 = "ddfe4c0c55f0e3fd1f66dd82c1d4a3d872ce124639b9a77fcd172daf464438a5"; |
||||
sha256 = "80ecb69aa21152b924edf481e4b26c641f11aa264120bc322a14284811df9c14"; |
||||
}; |
||||
|
||||
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 |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ azure-mgmt-common ]; |
||||
propagatedBuildInputs = [ |
||||
azure-mgmt-common |
||||
azure-mgmt-core |
||||
]; |
||||
|
||||
# has no tests |
||||
doCheck = false; |
||||
|
||||
pythonNamespaces = [ "azure.mgmt" ]; |
||||
|
||||
pythonImportsCheck = [ "azure.mgmt.resource" ]; |
||||
|
||||
meta = with pkgs.lib; { |
||||
description = "Microsoft Azure SDK for Python"; |
||||
homepage = "https://github.com/Azure/azure-sdk-for-python"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ olcai mwilsoninsight ]; |
||||
maintainers = with maintainers; [ olcai mwilsoninsight jonringer ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue