Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / gidgethub / default.nix
bloba28bcfb0ec1b9ae3f8182fe0749e498452441207
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
17 buildPythonPackage rec {
18   pname = "gidgethub";
19   version = "4.2.0";
21   disabled = pythonOlder "3.6";
23   src = fetchPypi {
24     inherit pname version;
25     sha256 = "5526cc2a06bfad707d10ec118393e0d33c2aa524605255d96958c22c93e8e7aa";
26   };
28   nativeBuildInputs = [ setuptools pytestrunner ];
29   checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
30   propagatedBuildInputs = [
31     uritemplate
32     pyjwt
33   ];
35   postPatch = ''
36     substituteInPlace setup.py \
37       --replace "extras_require=extras_require," "extras_require=None,"
38   '';
40   # requires network (reqests github.com)
41   doCheck = false;
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   };