depot/third_party/nixpkgs/pkgs/development/python-modules/google-api-python-client/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

56 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
google-auth,
google-auth-httplib2,
google-api-core,
httplib2,
uritemplate,
oauth2client,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "google-api-python-client";
version = "2.135.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-tVKigSPtlUkwNWmNuA6O14yRBqi0IuY6F1FQubVbcE4=";
};
build-system = [ setuptools ];
dependencies = [
google-auth
google-auth-httplib2
google-api-core
httplib2
uritemplate
oauth2client
];
# No tests included in archive
doCheck = false;
pythonImportsCheck = [ "googleapiclient" ];
meta = with lib; {
description = "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}";
license = licenses.asl20;
maintainers = [ ];
};
}