mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ stdenv, buildPythonPackage, fetchpatch, fetchPypi, pythonOlder
|
||
, pytestCheckHook, cachetools, flask, freezegun, mock, oauth2client
|
||
, pyasn1-modules, pytest, pytest-localserver, requests, responses, rsa
|
||
, setuptools, six, urllib3 }:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "google-auth";
|
||
version = "1.23.0";
|
||
|
||
src = fetchPypi {
|
||
inherit pname version;
|
||
sha256 = "5176db85f1e7e837a646cd9cede72c3c404ccf2e3373d9ee14b2db88febad440";
|
||
};
|
||
|
||
disabled = pythonOlder "3.5";
|
||
|
||
propagatedBuildInputs = [ six pyasn1-modules cachetools rsa setuptools ];
|
||
|
||
checkInputs = [
|
||
flask
|
||
freezegun
|
||
mock
|
||
oauth2client
|
||
pytestCheckHook
|
||
pytest-localserver
|
||
requests
|
||
responses
|
||
urllib3
|
||
];
|
||
|
||
meta = with stdenv.lib; {
|
||
description = "Google Auth Python Library";
|
||
longDescription = ''
|
||
This library simplifies using Google’s various server-to-server
|
||
authentication mechanisms to access Google APIs.
|
||
'';
|
||
homepage = "https://github.com/googleapis/google-auth-library-python";
|
||
changelog =
|
||
"https://github.com/googleapis/google-auth-library-python/blob/v${version}/CHANGELOG.md";
|
||
# Documentation: https://googleapis.dev/python/google-auth/latest/index.html
|
||
license = licenses.asl20;
|
||
maintainers = with maintainers; [ ];
|
||
};
|
||
}
|