nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 61 lines 1.1 kB view raw
1{ lib 2, aiohttp 3, aresponses 4, async-timeout 5, backoff 6, buildPythonPackage 7, fetchFromGitHub 8, poetry-core 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "aiogithubapi"; 16 version = "22.3.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "ludeeus"; 23 repo = pname; 24 rev = version; 25 hash = "sha256-5gKANZtDhIoyfyLdS15JDWTxHBFkaHDUlbVVhRs7MSE="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 async-timeout 35 backoff 36 ]; 37 38 checkInputs = [ 39 aresponses 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 postPatch = '' 45 # Upstream is releasing with the help of a CI to PyPI, GitHub releases 46 # are not in their focus 47 substituteInPlace pyproject.toml \ 48 --replace 'version="main",' 'version="${version}",' 49 ''; 50 51 pythonImportsCheck = [ 52 "aiogithubapi" 53 ]; 54 55 meta = with lib; { 56 description = "Python client for the GitHub API"; 57 homepage = "https://github.com/ludeeus/aiogithubapi"; 58 license = with licenses; [ mit ]; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}