1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, uritemplate
6, pyjwt
7, pytestCheckHook
8, aiohttp
9, httpx
10, importlib-resources
11, pytest-asyncio
12, pytest-tornasync
13}:
14
15buildPythonPackage rec {
16 pname = "gidgethub";
17 version = "5.2.1";
18 format = "flit";
19
20 disabled = pythonOlder "3.6";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "sha256-pTP4WleVUmFDPCUHAUdjBMw3QDfAq2aw5TcrSEZ0nVw=";
25 };
26
27 propagatedBuildInputs = [
28 uritemplate
29 pyjwt
30 ]
31 ++ pyjwt.optional-dependencies.crypto;
32
33 checkInputs = [
34 pytestCheckHook
35 aiohttp
36 httpx
37 importlib-resources
38 pytest-asyncio
39 pytest-tornasync
40 ];
41
42 disabledTests = [
43 # Require internet connection
44 "test__request"
45 "test_get"
46 ];
47
48 meta = with lib; {
49 description = "An async GitHub API library";
50 homepage = "https://github.com/brettcannon/gidgethub";
51 license = licenses.asl20;
52 maintainers = [ maintainers.costrouc ];
53 };
54}