2019-06-15 21:53:58 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2019-10-23 11:00:47 +01:00
|
|
|
, python
|
2019-06-15 21:53:58 +01:00
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 07:47:25 +01:00
|
|
|
version = "3.1.2";
|
2019-06-15 21:53:58 +01:00
|
|
|
pname = "azure-cosmos";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:25 +01:00
|
|
|
sha256 = "7f8ac99e4e40c398089fc383bfadcdc83376f72b88532b0cac0b420357cd08c7";
|
2019-06-15 21:53:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six requests ];
|
|
|
|
|
2019-10-23 11:00:47 +01:00
|
|
|
postInstall = ''
|
|
|
|
rm $out/${python.sitePackages}/azure/__init__.py
|
|
|
|
'';
|
|
|
|
|
2019-06-15 21:53:58 +01:00
|
|
|
# requires an active Azure Cosmos service
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Azure Cosmos DB API";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-06-15 21:53:58 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|