From 425a20d4ea89723be44d1aef92e77efbed28142d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 Mar 2026 10:54:08 +0100 Subject: [PATCH 1/2] python3Packages.aiogithubapi: 25.5.0 -> 26.0.0 Changelog: https://github.com/ludeeus/aiogithubapi/releases/tag/26.0.0 --- .../python-modules/aiogithubapi/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 7603684fea3b..b1c79375b43f 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -2,11 +2,10 @@ lib, aiohttp, aresponses, - async-timeout, backoff, buildPythonPackage, fetchFromGitHub, - poetry-core, + hatchling, pytest-asyncio, pytestCheckHook, sigstore, @@ -15,14 +14,14 @@ buildPythonPackage rec { pname = "aiogithubapi"; - version = "25.5.0"; + version = "26.0.0"; pyproject = true; src = fetchFromGitHub { owner = "ludeeus"; repo = "aiogithubapi"; tag = version; - hash = "sha256-zl9QpFpkvSTs0BUDMBmwTeLY1YvNRSqbkIZ5LDUP3zw="; + hash = "sha256-LQFOmg59kusqYtaLQaFePh+4aM25MaXVNkYy3PIeZ5A="; }; __darwinAllowLocalNetworking = true; @@ -34,13 +33,11 @@ buildPythonPackage rec { --replace-fail 'version = "0"' 'version = "${version}"' ''; - pythonRelaxDeps = [ "async-timeout" ]; - build-system = [ poetry-core ]; + build-system = [ hatchling ]; dependencies = [ aiohttp - async-timeout backoff ]; From ff7caa7a1de04bd3bddf0892046523031ee57d40 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 Mar 2026 10:58:57 +0100 Subject: [PATCH 2/2] python3Packages.aiogithubapi: migrate to finalAttrs --- .../python-modules/aiogithubapi/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index b1c79375b43f..755a158d9300 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -12,7 +12,7 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aiogithubapi"; version = "26.0.0"; pyproject = true; @@ -20,7 +20,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ludeeus"; repo = "aiogithubapi"; - tag = version; + tag = finalAttrs.version; hash = "sha256-LQFOmg59kusqYtaLQaFePh+4aM25MaXVNkYy3PIeZ5A="; }; @@ -30,10 +30,9 @@ buildPythonPackage rec { # 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}"' + --replace-fail 'version = "0"' 'version = "${finalAttrs.version}"' ''; - build-system = [ hatchling ]; dependencies = [ @@ -63,8 +62,8 @@ buildPythonPackage rec { meta = { description = "Python client for the GitHub API"; homepage = "https://github.com/ludeeus/aiogithubapi"; - changelog = "https://github.com/ludeeus/aiogithubapi/releases/tag/${version}"; + changelog = "https://github.com/ludeeus/aiogithubapi/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})