2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, twisted
|
|
|
|
, treq
|
|
|
|
, tornado
|
|
|
|
, aiohttp
|
|
|
|
, uritemplate
|
2020-06-18 07:06:33 +00:00
|
|
|
, pyjwt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gidgethub";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "4.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "cfabfa696d422ee91eaf1e3f01ea75e576721233cc3ea8badc7d86c30061df8e";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools pytestrunner ];
|
|
|
|
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
uritemplate
|
|
|
|
pyjwt
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "extras_require=extras_require," "extras_require=None,"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# requires network (reqests github.com)
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An async GitHub API library";
|
|
|
|
homepage = "https://github.com/brettcannon/gidgethub";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|