2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 10:05:59 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, python
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2021-01-05 10:05:59 +00:00
|
|
|
, grpcio
|
|
|
|
, mock
|
|
|
|
}:
|
2017-12-20 22:48:57 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-core";
|
2021-06-18 22:47:18 +01:00
|
|
|
version = "1.7.0";
|
2017-12-20 22:48:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:18 +01:00
|
|
|
sha256 = "2ab0cf260c11d0cc334573301970419abb6a1f3909c6cd136e4be996616372fe";
|
2017-12-20 22:48:57 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core ];
|
2017-12-20 22:48:57 +00:00
|
|
|
|
2021-01-05 10:05:59 +00:00
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2020-11-03 01:15:39 +00:00
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
2017-12-20 22:48:57 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 10:05:59 +00:00
|
|
|
pythonImportsCheck = [ "google.cloud" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-20 22:48:57 +00:00
|
|
|
description = "API Client library for Google Cloud: Core Helpers";
|
2020-11-03 01:15:39 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-cloud-core";
|
2017-12-20 22:48:57 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 10:05:59 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2017-12-20 22:48:57 +00:00
|
|
|
};
|
|
|
|
}
|