@@ -0,0 +1,40 @@
1+{ stdenv
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+}:
15+
16+buildPythonPackage rec {
17+ pname = "gidgethub";
18+ version = "2.5.0";
19+
20+ disabled = pythonOlder "3.6";
21+
22+ src = fetchPypi {
23+ inherit pname version;
24+ sha256 = "d37fdfd149bc0efa21d3899c737d9b5c7ff6348a9b3f03bf3aa0e9f8ca345483";
25+ };
26+
27+ buildInputs = [ setuptools pytestrunner ];
28+ checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
29+ propagatedBuildInputs = [ uritemplate ];
30+
31+ # requires network (reqests github.com)
32+ doCheck = false;
33+
34+ meta = with stdenv.lib; {
35+ description = "An async GitHub API library";
36+ homepage = https://github.com/brettcannon/gidgethub;
37+ license = licenses.asl20;
38+ maintainers = [ maintainers.costrouc ];
39+ };
40+}