1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, setuptools
6, pytest-runner
7, pytest
8, pytest-asyncio
9, twisted
10, treq
11, tornado
12, aiohttp
13, uritemplate
14, pyjwt
15}:
16
17buildPythonPackage rec {
18 pname = "gidgethub";
19 version = "5.0.1";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "3efbd6998600254ec7a2869318bd3ffde38edc3a0d37be0c14bc46b45947b682";
26 };
27
28 nativeBuildInputs = [ setuptools pytest-runner ];
29 checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
30 propagatedBuildInputs = [
31 uritemplate
32 pyjwt
33 ];
34
35 postPatch = ''
36 substituteInPlace setup.py \
37 --replace "extras_require=extras_require," "extras_require=None,"
38 '';
39
40 # requires network (reqests github.com)
41 doCheck = false;
42
43 meta = with lib; {
44 description = "An async GitHub API library";
45 homepage = "https://github.com/brettcannon/gidgethub";
46 license = licenses.asl20;
47 maintainers = [ maintainers.costrouc ];
48 };
49}