2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
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-01-05 10:05:59 +00:00
|
|
|
version = "1.5.0";
|
2017-12-20 22:48:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 10:05:59 +00:00
|
|
|
sha256 = "01liq4nrd2g3ingg8v0ly4c86db8agnr9h1fiz219c7fz0as0xqj";
|
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
|
|
|
};
|
|
|
|
}
|