1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 google-auth,
6 google-auth-oauthlib,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pydata-google-auth";
12 version = "1.8.2";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 repo = pname;
17 owner = "pydata";
18 rev = "refs/tags/${version}";
19 hash = "sha256-Wo+tXbzOuz/cW8GuWoSxLA/Lr2S9NMdePa8tIV39mbY=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [
25 google-auth
26 google-auth-oauthlib
27 ];
28
29 # tests require network access
30 doCheck = false;
31
32 pythonImportsCheck = [ "pydata_google_auth" ];
33
34 meta = with lib; {
35 description = "Helpers for authenticating to Google APIs";
36 homepage = "https://github.com/pydata/pydata-google-auth";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ cpcloud ];
39 };
40}