{ lib , aiohttp , aresponses , async-timeout , backoff , buildPythonPackage , fetchFromGitHub , poetry-core , pytest-asyncio , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "aiogithubapi"; version = "22.10.1"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "ludeeus"; repo = pname; rev = version; hash = "sha256-ceBuqaMqqL6qwN52765MG4sLt+08hx2G9rUVNC7x6ik="; }; postPatch = '' # Upstream is releasing with the help of a CI to PyPI, GitHub releases # are not in their focus substituteInPlace pyproject.toml \ --replace 'version = "0"' 'version = "${version}"' \ --replace 'backoff = "^1.10.0"' 'backoff = "*"' ''; nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp async-timeout backoff ]; checkInputs = [ aresponses pytest-asyncio pytestCheckHook ]; pytestFlagsArray = [ "--asyncio-mode=legacy" ]; pythonImportsCheck = [ "aiogithubapi" ]; meta = with lib; { description = "Python client for the GitHub API"; homepage = "https://github.com/ludeeus/aiogithubapi"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }