python3Packages.google-auth: build from source, add maintainer

Changed files
+16 -12
pkgs
development
python-modules
google-auth
+16 -12
pkgs/development/python-modules/google-auth/default.nix
···
{
lib,
-
stdenv,
+
fetchFromGitHub,
aiohttp,
aioresponses,
buildPythonPackage,
cachetools,
cryptography,
-
fetchPypi,
flask,
freezegun,
grpcio,
···
pytest-asyncio,
pytest-localserver,
pytestCheckHook,
-
pythonOlder,
pyu2f,
requests,
responses,
···
version = "2.38.0";
pyproject = true;
-
disabled = pythonOlder "3.7";
-
-
src = fetchPypi {
-
pname = "google_auth";
-
inherit version;
-
hash = "sha256-goURNgfTuAo/FUO3WWJEe6ign+hXg0MqeE/e72rAlMQ=";
+
src = fetchFromGitHub {
+
owner = "googleapis";
+
repo = "google-auth-library-python";
+
tag = "v${version}";
+
hash = "sha256-XmAKlzld2a6dFag/49zmhXMS5WDnoDZKqkjmzLb+ZN0=";
};
build-system = [ setuptools ];
···
responses
] ++ lib.flatten (lib.attrValues optional-dependencies);
+
disabledTestPaths = [
+
"samples/"
+
"system_tests/"
+
# Requires a running aiohttp event loop
+
"tests_async/"
+
];
+
pythonImportsCheck = [
"google.auth"
"google.oauth2"
···
__darwinAllowLocalNetworking = true;
-
meta = with lib; {
+
meta = {
description = "Google Auth Python Library";
longDescription = ''
This library simplifies using Google's various server-to-server
···
'';
homepage = "https://github.com/googleapis/google-auth-library-python";
changelog = "https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
-
license = licenses.asl20;
-
maintainers = [ ];
+
license = lib.licenses.asl20;
+
maintainers = [ lib.maintainers.sarahec ];
};
}