From f31024ffc3a0cb1823780643c2832e20f014a1b2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Nov 2022 17:46:28 +0100 Subject: [PATCH] python310Packages.google-reauth: init at 0.1.1 --- .../python-modules/google-reauth/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/google-reauth/default.nix diff --git a/pkgs/development/python-modules/google-reauth/default.nix b/pkgs/development/python-modules/google-reauth/default.nix new file mode 100644 index 000000000000..bdb7d78d7d4a --- /dev/null +++ b/pkgs/development/python-modules/google-reauth/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mock +, oauth2client +, pytestCheckHook +, pythonOlder +, pyu2f +}: + +buildPythonPackage rec { + pname = "google-reauth"; + version = "0.1.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Google"; + repo = "google-reauth-python"; + rev = "refs/tags/${version}"; + hash = "sha256-J7GVh+iY+69rFzf4hN/KLFZMZ1/S3CL5TZ7SsP5Oy3g="; + }; + + propagatedBuildInputs = [ + oauth2client + pyu2f + ]; + + checkInputs = [ + mock + pytestCheckHook + ]; + + pythonImportsCheck = [ + "google_reauth" + ]; + + meta = with lib; { + description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage"; + homepage = "https://github.com/Google/google-reauth-python"; + changelog = "https://github.com/google/google-reauth-python/releases/tag/${version}"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6935f3efff29..efe6d856a098 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3901,6 +3901,8 @@ self: super: with self; { google-re2 = callPackage ../development/python-modules/google-re2 { }; + google-reauth = callPackage ../development/python-modules/google-reauth { }; + google-resumable-media = callPackage ../development/python-modules/google-resumable-media { }; googletrans = callPackage ../development/python-modules/googletrans { };