1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 google-auth,
8 httplib2,
9 mock,
10 pytest-localserver,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "google-auth-httplib2";
16 version = "0.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "googleapis";
21 repo = "google-auth-library-python-httplib2";
22 tag = "v${version}";
23 sha256 = "sha256-qY00u1srwAw68VXewZDOsWZrtHpi5UoRZfesSY7mTk8=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 google-auth
30 httplib2
31 ];
32
33 __darwinAllowLocalNetworking = true;
34
35 nativeCheckInputs = [
36 flask
37 mock
38 pytestCheckHook
39 pytest-localserver
40 ];
41
42 meta = {
43 description = "Google Authentication Library: httplib2 transport";
44 homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2";
45 changelog = "https://github.com/googleapis/google-auth-library-python-httplib2/blob/v${version}/CHANGELOG.md";
46 license = lib.licenses.asl20;
47 maintainers = [ lib.maintainers.sarahec ];
48 };
49}