1{ lib 2, aiohttp 3, aresponses 4, async-timeout 5, backoff 6, buildPythonPackage 7, fetchFromGitHub 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "aiogithubapi"; 15 version = "21.11.0"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "ludeeus"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-sxWgLd+oQv9qNOpyAYXsBcqGbo/ugNXzGF5nbdcNLFw="; 24 }; 25 26 postPatch = '' 27 # Upstream is releasing with the help of a CI to PyPI, GitHub releases 28 # are not in their focus 29 substituteInPlace setup.py \ 30 --replace 'version="main",' 'version="${version}",' 31 ''; 32 33 propagatedBuildInputs = [ 34 aiohttp 35 async-timeout 36 backoff 37 ]; 38 39 checkInputs = [ 40 aresponses 41 pytest-asyncio 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "aiogithubapi" ]; 46 47 meta = with lib; { 48 description = "Python client for the GitHub API"; 49 homepage = "https://github.com/ludeeus/aiogithubapi"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}