nixpkgs/pkgs/development/python-modules/azure-mgmt-common/default.nix
Max Wilson b0403da859
pythonPackages.azure-mgmt-common: refactor
sha differs from what is offered via pip, echo statement no longer
necessary, updated metadata
2019-07-16 14:53:24 -07:00

42 lines
928 B
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, python
, azure-common
, azure-mgmt-nspkg
, requests
, msrestazure
, isPy3k
}:
buildPythonPackage rec {
version = "0.20.0";
pname = "azure-mgmt-common";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "c63812c13d9f36615c07f874bc602b733bb516f1ed62ab73189b8f71c6bfbfe6";
};
propagatedBuildInputs = [
azure-common
azure-mgmt-nspkg
requests
msrestazure
];
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 = "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 ];
};
}