From 8a55f791873fb0b92a8aca21450888b71fee264a Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 5 May 2025 13:38:10 -0700 Subject: [PATCH] python3Packages.google-api-python-client: build from source, add maintainer --- .../google-api-python-client/default.nix | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/google-api-python-client/default.nix b/pkgs/development/python-modules/google-api-python-client/default.nix index a55ef23f27ec..ca76c3d24eda 100644 --- a/pkgs/development/python-modules/google-api-python-client/default.nix +++ b/pkgs/development/python-modules/google-api-python-client/default.nix @@ -1,14 +1,13 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, google-auth, google-auth-httplib2, google-api-core, httplib2, uritemplate, setuptools, - pythonOlder, }: buildPythonPackage rec { @@ -16,12 +15,11 @@ buildPythonPackage rec { version = "2.166.0"; pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - pname = "google_api_python_client"; - inherit version; - hash = "sha256-uM+EO9nXNsE0rvds8dx6R8koOi7yQme5cge53UOzDvc="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "google-api-python-client"; + tag = "v${version}"; + hash = "sha256-gJ5YG3Zse3X3BIzCnvWW4Uwokwh79NRvcYJd2TRb0s4="; }; build-system = [ setuptools ]; @@ -34,12 +32,9 @@ buildPythonPackage rec { uritemplate ]; - # No tests included in archive - doCheck = false; - pythonImportsCheck = [ "googleapiclient" ]; - meta = with lib; { + meta = { description = "Official Python client library for Google's discovery based APIs"; longDescription = '' These client libraries are officially supported by Google. However, the @@ -49,7 +44,7 @@ buildPythonPackage rec { ''; 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 = [ ]; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sarahec ]; }; }