2020-04-21 17:23:08 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
2020-03-15 10:29:08 +00:00
|
|
|
, google_auth, google-auth-httplib2, google_api_core
|
|
|
|
, httplib2, six, uritemplate, oauth2client }:
|
2018-04-05 20:37:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-api-python-client";
|
2020-04-21 17:23:08 +00:00
|
|
|
version = "1.8.1";
|
2018-04-05 20:37:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-04-21 17:23:08 +00:00
|
|
|
sha256 = "14d7719sxl7bqpw3k4hhfwd0l0v98lnpi7qlhdaf8jxw21ivzmpz";
|
2018-04-05 20:37:52 +00:00
|
|
|
};
|
|
|
|
|
2020-04-21 17:23:08 +00:00
|
|
|
patches = [
|
|
|
|
# To fix a regression/bug in 1.8.1:
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/googleapis/google-api-python-client/commit/1d8ec6874e1c6081893de7cd7cbc86d1f6580320.patch";
|
|
|
|
sha256 = "1nr24jzvbkzaigv9c935fkpzfa36hj6k7yx5bdwxqfhpa3p9i8n9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-04-05 20:37:52 +00:00
|
|
|
# No tests included in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-15 10:29:08 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_auth google-auth-httplib2 google_api_core
|
|
|
|
httplib2 six uritemplate oauth2client
|
|
|
|
];
|
2018-04-05 20:37:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-03-11 22:54:47 +00:00
|
|
|
description = "The official Python client library for Google's discovery based APIs";
|
|
|
|
longDescription = ''
|
|
|
|
These client libraries are officially supported by Google. However, the
|
|
|
|
libraries are considered complete and are in maintenance mode. This means
|
|
|
|
that we will address critical bugs and security issues but will not add
|
|
|
|
any new features.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/google/google-api-python-client";
|
|
|
|
changelog = "https://github.com/googleapis/google-api-python-client/releases/tag/v${version}";
|
2018-04-05 20:37:52 +00:00
|
|
|
license = licenses.asl20;
|
2019-01-28 23:09:31 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2018-04-05 20:37:52 +00:00
|
|
|
};
|
|
|
|
}
|