1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 flit-core, 7 uritemplate, 8 pyjwt, 9 pytestCheckHook, 10 aiohttp, 11 httpx, 12 importlib-resources, 13 pytest-asyncio, 14 pytest-tornasync, 15}: 16 17buildPythonPackage rec { 18 pname = "gidgethub"; 19 version = "5.4.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-dHDXcj18F0NHGi1i55yHUvuhKxwJcuS61XJSM4pQHb0="; 27 }; 28 29 build-system = [ flit-core ]; 30 31 dependencies = [ 32 uritemplate 33 pyjwt 34 ] 35 ++ pyjwt.optional-dependencies.crypto; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 aiohttp 40 httpx 41 importlib-resources 42 pytest-asyncio 43 pytest-tornasync 44 ]; 45 46 disabledTests = [ 47 # Require internet connection 48 "test__request" 49 "test_get" 50 ]; 51 52 meta = with lib; { 53 description = "Async GitHub API library"; 54 homepage = "https://github.com/brettcannon/gidgethub"; 55 license = licenses.asl20; 56 maintainers = [ ]; 57 }; 58}