2019-02-24 18:02:24 +00:00
|
|
|
{ lib
|
2018-10-14 15:36:50 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, twisted
|
|
|
|
, treq
|
|
|
|
, tornado
|
|
|
|
, aiohttp
|
|
|
|
, uritemplate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gidgethub";
|
2019-12-19 19:31:11 +00:00
|
|
|
version = "3.2.0";
|
2018-10-14 15:36:50 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:11 +00:00
|
|
|
sha256 = "8f4b69063a256994d38243cc0eba4e1453017b5b8b04a173216d02d47ffc3989";
|
2018-10-14 15:36:50 +01:00
|
|
|
};
|
|
|
|
|
2019-02-24 18:02:24 +00:00
|
|
|
nativeBuildInputs = [ setuptools pytestrunner ];
|
2018-10-14 15:36:50 +01:00
|
|
|
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
|
|
|
propagatedBuildInputs = [ uritemplate ];
|
|
|
|
|
2019-02-24 18:02:24 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "extras_require=extras_require," "extras_require=None,"
|
|
|
|
'';
|
|
|
|
|
2018-10-14 15:36:50 +01:00
|
|
|
# requires network (reqests github.com)
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-02-24 18:02:24 +00:00
|
|
|
meta = with lib; {
|
2018-10-14 15:36:50 +01:00
|
|
|
description = "An async GitHub API library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/brettcannon/gidgethub";
|
2018-10-14 15:36:50 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|