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