1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 oauth2client,
7 pytestCheckHook,
8 pythonOlder,
9 pyu2f,
10}:
11
12buildPythonPackage rec {
13 pname = "google-reauth";
14 version = "0.1.1";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "Google";
21 repo = "google-reauth-python";
22 rev = "refs/tags/${version}";
23 hash = "sha256-J7GVh+iY+69rFzf4hN/KLFZMZ1/S3CL5TZ7SsP5Oy3g=";
24 };
25
26 propagatedBuildInputs = [
27 oauth2client
28 pyu2f
29 ];
30
31 nativeCheckInputs = [
32 mock
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "google_reauth" ];
37
38 meta = with lib; {
39 description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage";
40 homepage = "https://github.com/Google/google-reauth-python";
41 changelog = "https://github.com/google/google-reauth-python/releases/tag/${version}";
42 license = with licenses; [ asl20 ];
43 maintainers = with maintainers; [ fab ];
44 };
45}