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