Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / azure-common / default.nix
blob2b4caa102f79c7a23776ac345021f8a88c6b7fd3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , azure-nspkg
5 , isPyPy
6 , setuptools
7 , python
8 , isPy3k
9 }:
11 buildPythonPackage rec {
12   version = "1.1.28";
13   format = "setuptools";
14   pname = "azure-common";
15   disabled = isPyPy;
17   src = fetchPypi {
18     inherit pname version;
19     extension = "zip";
20     hash = "sha256-SsDNMhTja2obakQmhnIqXYzESWA6qDPz8PQL2oNnBKM=";
21   };
23   propagatedBuildInputs = [
24     azure-nspkg
25   ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
27   postInstall = lib.optionalString (!isPy3k) ''
28     echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py
29   '';
31   doCheck = false;
33   meta = with lib; {
34     description = "This is the Microsoft Azure common code";
35     homepage = "https://github.com/Azure/azure-sdk-for-python";
36     license = licenses.mit;
37     maintainers = with maintainers; [ olcai maxwilson ];
38   };