1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, setuptools
6, pytestrunner
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 = "4.1.1";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchPypi {
24 inherit pname version;
25 sha256 = "cfabfa696d422ee91eaf1e3f01ea75e576721233cc3ea8badc7d86c30061df8e";
26 };
27
28 nativeBuildInputs = [ setuptools pytestrunner ];
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}