2018-10-10 17:24:46 +01:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, azure-nspkg
|
|
|
|
, isPyPy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-05-30 07:49:48 +01:00
|
|
|
version = "1.1.21";
|
2018-10-10 17:24:46 +01:00
|
|
|
pname = "azure-common";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2019-05-30 07:49:48 +01:00
|
|
|
sha256 = "25d696d2affbf5fe9b13aebe66271fce545e673e7e1eeaaec2d73599ba639d63";
|
2018-10-10 17:24:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ azure-nspkg ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "Microsoft Azure SDK for Python";
|
|
|
|
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ olcai ];
|
|
|
|
};
|
|
|
|
}
|