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