|
|
@ -2,21 +2,20 @@ |
|
|
|
, buildPythonPackage |
|
|
|
, buildPythonPackage |
|
|
|
, fetchPypi |
|
|
|
, fetchPypi |
|
|
|
, pythonOlder |
|
|
|
, pythonOlder |
|
|
|
, setuptools |
|
|
|
|
|
|
|
, pytest-runner |
|
|
|
|
|
|
|
, pytest |
|
|
|
|
|
|
|
, pytest-asyncio |
|
|
|
|
|
|
|
, twisted |
|
|
|
|
|
|
|
, treq |
|
|
|
|
|
|
|
, tornado |
|
|
|
|
|
|
|
, aiohttp |
|
|
|
|
|
|
|
, uritemplate |
|
|
|
, uritemplate |
|
|
|
, pyjwt |
|
|
|
, pyjwt |
|
|
|
|
|
|
|
, pytestCheckHook |
|
|
|
|
|
|
|
, aiohttp |
|
|
|
|
|
|
|
, httpx |
|
|
|
|
|
|
|
, importlib-resources |
|
|
|
|
|
|
|
, pytest-asyncio |
|
|
|
|
|
|
|
, pytest-tornasync |
|
|
|
}: |
|
|
|
}: |
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
buildPythonPackage rec { |
|
|
|
pname = "gidgethub"; |
|
|
|
pname = "gidgethub"; |
|
|
|
version = "5.1.0"; |
|
|
|
version = "5.1.0"; |
|
|
|
|
|
|
|
format = "flit"; |
|
|
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
|
|
|
|
|
|
|
@ -25,20 +24,25 @@ buildPythonPackage rec { |
|
|
|
sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU="; |
|
|
|
sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU="; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools pytest-runner ]; |
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ]; |
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
propagatedBuildInputs = [ |
|
|
|
uritemplate |
|
|
|
uritemplate |
|
|
|
pyjwt |
|
|
|
pyjwt |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
checkInputs = [ |
|
|
|
substituteInPlace setup.py \ |
|
|
|
pytestCheckHook |
|
|
|
--replace "extras_require=extras_require," "extras_require=None," |
|
|
|
aiohttp |
|
|
|
''; |
|
|
|
httpx |
|
|
|
|
|
|
|
importlib-resources |
|
|
|
|
|
|
|
pytest-asyncio |
|
|
|
|
|
|
|
pytest-tornasync |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
# requires network (reqests github.com) |
|
|
|
disabledTests = [ |
|
|
|
doCheck = false; |
|
|
|
# Require internet connection |
|
|
|
|
|
|
|
"test__request" |
|
|
|
|
|
|
|
"test_get" |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
meta = with lib; { |
|
|
|
description = "An async GitHub API library"; |
|
|
|
description = "An async GitHub API library"; |
|
|
|