0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
36 lines
967 B
Nix
36 lines
967 B
Nix
{ pkgs
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, azure-mgmt-common
|
|
, isPy3k
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
version = "10.2.0";
|
|
pname = "azure-mgmt-resource";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "zip";
|
|
sha256 = "ddfe4c0c55f0e3fd1f66dd82c1d4a3d872ce124639b9a77fcd172daf464438a5";
|
|
};
|
|
|
|
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 ];
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|