nixpkgs/pkgs/development/python-modules/aiogithubapi/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

73 lines
1.5 KiB
Nix

{
lib,
aiohttp,
aresponses,
async-timeout,
backoff,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytestCheckHook,
sigstore,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "aiogithubapi";
version = "25.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ludeeus";
repo = "aiogithubapi";
tag = version;
hash = "sha256-zl9QpFpkvSTs0BUDMBmwTeLY1YvNRSqbkIZ5LDUP3zw=";
};
__darwinAllowLocalNetworking = true;
postPatch = ''
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
# are not in their focus
substituteInPlace pyproject.toml \
--replace-fail 'version = "0"' 'version = "${version}"'
'';
pythonRelaxDeps = [ "async-timeout" ];
build-system = [ poetry-core ];
dependencies = [
aiohttp
async-timeout
backoff
];
# Optional dependencies for deprecated-verify are not added
# Only sigstore < 2 is supported
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
writableTmpDirAsHomeHook
];
pytestFlags = [ "--asyncio-mode=auto" ];
preCheck = ''
# Need sigstore is an optional dependencies and need <2
rm -rf tests/test_helper.py
'';
pythonImportsCheck = [ "aiogithubapi" ];
meta = {
description = "Python client for the GitHub API";
homepage = "https://github.com/ludeeus/aiogithubapi";
changelog = "https://github.com/ludeeus/aiogithubapi/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}