blob: 727ac93f47b61dd1d90f767d1e89477e93f105d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
google-auth-oauthlib,
google-auth,
pythonOlder,
setuptools,
versioneer,
}:
buildPythonPackage rec {
pname = "pydata-google-auth";
version = "1.8.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = "pydata-google-auth";
owner = "pydata";
rev = "refs/tags/${version}";
hash = "sha256-Wo+tXbzOuz/cW8GuWoSxLA/Lr2S9NMdePa8tIV39mbY=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
dependencies = [
google-auth
google-auth-oauthlib
];
# tests require network access
doCheck = false;
pythonImportsCheck = [ "pydata_google_auth" ];
meta = with lib; {
description = "Helpers for authenticating to Google APIs";
homepage = "https://github.com/pydata/pydata-google-auth";
changelog = "https://github.com/pydata/pydata-google-auth/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ cpcloud ];
};
}
|