2019-09-14 02:06:45 +01:00
|
|
|
{ lib
|
2018-10-10 17:24:46 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, azure-nspkg
|
|
|
|
, isPyPy
|
2019-09-14 02:06:45 +01:00
|
|
|
, setuptools
|
2018-10-10 17:24:46 +01:00
|
|
|
, python
|
2019-04-29 22:09:05 +01:00
|
|
|
, isPy3k
|
2018-10-10 17:24:46 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-16 10:43:03 +01:00
|
|
|
version = "1.1.23";
|
2018-10-10 17:24:46 +01:00
|
|
|
pname = "azure-common";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2019-10-16 10:43:03 +01:00
|
|
|
sha256 = "53b1195b8f20943ccc0e71a17849258f7781bc6db1c72edc7d6c055f79bd54e3";
|
2018-10-10 17:24:46 +01:00
|
|
|
};
|
|
|
|
|
2019-04-29 22:09:05 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-nspkg
|
2019-09-14 02:06:45 +01:00
|
|
|
] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup
|
2018-10-10 17:24:46 +01:00
|
|
|
|
2019-04-29 22:09:05 +01:00
|
|
|
postInstall = if isPy3k then "" else ''
|
2018-10-10 17:24:46 +01:00
|
|
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
|
|
|
'';
|
|
|
|
|
2019-04-29 22:09:05 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-09-14 02:06:45 +01:00
|
|
|
meta = with lib; {
|
2019-04-29 22:09:05 +01:00
|
|
|
description = "This is the Microsoft Azure common code";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 22:09:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ olcai mwilsoninsight ];
|
2018-10-10 17:24:46 +01:00
|
|
|
};
|
|
|
|
}
|