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