Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 45 lines 965 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, setuptools 6, pytestrunner 7, pytest 8, pytest-asyncio 9, twisted 10, treq 11, tornado 12, aiohttp 13, uritemplate 14}: 15 16buildPythonPackage rec { 17 pname = "gidgethub"; 18 version = "3.1.0"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "52119435ba73ddd5e697dae7bec8b93a048bc738720b81691ebd4b4d81d2d762"; 25 }; 26 27 nativeBuildInputs = [ setuptools pytestrunner ]; 28 checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ]; 29 propagatedBuildInputs = [ uritemplate ]; 30 31 postPatch = '' 32 substituteInPlace setup.py \ 33 --replace "extras_require=extras_require," "extras_require=None," 34 ''; 35 36 # requires network (reqests github.com) 37 doCheck = false; 38 39 meta = with lib; { 40 description = "An async GitHub API library"; 41 homepage = https://github.com/brettcannon/gidgethub; 42 license = licenses.asl20; 43 maintainers = [ maintainers.costrouc ]; 44 }; 45}