1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, oauth2client 6, pytestCheckHook 7, pythonOlder 8, pyu2f 9}: 10 11buildPythonPackage rec { 12 pname = "google-reauth"; 13 version = "0.1.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 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 }; 24 25 propagatedBuildInputs = [ 26 oauth2client 27 pyu2f 28 ]; 29 30 nativeCheckInputs = [ 31 mock 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "google_reauth" 37 ]; 38 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 }; 46}