nixpkgs/pkgs/development/python-modules/azure-common/default.nix

39 lines
914 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, azure-nspkg
, isPyPy
, setuptools
, python
2019-04-29 21:09:05 +00:00
, isPy3k
}:
buildPythonPackage rec {
2019-12-29 09:28:06 +00:00
version = "1.1.24";
pname = "azure-common";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
extension = "zip";
2019-12-29 09:28:06 +00:00
sha256 = "184ad6a05a3089dfdc1ce07c1cbfa489bbc45b5f6f56e848cac0851e6443da21";
};
2019-04-29 21:09:05 +00:00
propagatedBuildInputs = [
azure-nspkg
] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
2019-04-29 21:09:05 +00:00
postInstall = if isPy3k then "" else ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
'';
2019-04-29 21:09:05 +00:00
doCheck = false;
meta = with lib; {
2019-04-29 21:09:05 +00:00
description = "This is the Microsoft Azure common code";
homepage = "https://github.com/Azure/azure-sdk-for-python";
2019-04-29 21:09:05 +00:00
license = licenses.mit;
maintainers = with maintainers; [ olcai mwilsoninsight ];
};
}