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