mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:04:16 +01:00
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
google-auth,
|
|
google-auth-httplib2,
|
|
google-api-core,
|
|
httplib2,
|
|
uritemplate,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "google-api-python-client";
|
|
version = "2.188.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "google-api-python-client";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-uNvsWCfoT+wp6UnbDP5QS7Os2FnEsTzusdGZ9lD/LwY=";
|
|
# Remove mixed-case files that cause hash differences between platforms
|
|
postFetch = ''
|
|
rm -rf $out/docs/
|
|
'';
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
google-auth
|
|
google-auth-httplib2
|
|
google-api-core
|
|
httplib2
|
|
uritemplate
|
|
];
|
|
|
|
pythonImportsCheck = [ "googleapiclient" ];
|
|
|
|
meta = {
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.sarahec ];
|
|
};
|
|
})
|