From 783b53f760b46e44e1cf98dd94018566030b67c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 1 Jun 2026 13:04:11 -0700 Subject: [PATCH 1/2] python3Packages.aiohttp: 3.13.5 -> 3.14.0 Diff: https://github.com/aio-libs/aiohttp/compare/v3.13.5...v3.14.0 Changelog: https://docs.aiohttp.org/en/v3.14.0/changes.html --- pkgs/development/python-modules/aiohttp/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 9b76c5565090..b9c21b556fc3 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -50,14 +50,14 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.13.5"; + version = "3.14.0"; pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp"; tag = "v${version}"; - hash = "sha256-bAP1/a2COHbe+39KY3GHXSo1Iq9x9xX8O2mLhmFlMlE="; + hash = "sha256-RRXdDDkQlL7erfYgs4+gSy6GMlVUG7PrDLTQBYJJ1To="; }; postPatch = '' @@ -68,6 +68,10 @@ buildPythonPackage rec { # don't install Cython using pip substituteInPlace Makefile \ --replace-fail "cythonize: .install-cython" "cythonize:" + + # don't depend on coverage for tests + substituteInPlace setup.cfg \ + --replace-fail "ignore:Couldn't import C tracer:coverage.exceptions.CoverageWarning" "" ''; build-system = [ From a5069b2b356a49d168890e5a25417a068f9ed7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 1 Jun 2026 13:06:00 -0700 Subject: [PATCH 2/2] python3Packages.aiohttp: use finalAttrs --- pkgs/development/python-modules/aiohttp/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index b9c21b556fc3..06844833573d 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -41,6 +41,7 @@ pytest-codspeed, pytest-cov-stub, pytest-mock, + pytest-timeout, pytest-xdist, pytestCheckHook, re-assert, @@ -48,7 +49,7 @@ zlib-ng, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aiohttp"; version = "3.14.0"; pyproject = true; @@ -56,7 +57,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-RRXdDDkQlL7erfYgs4+gSy6GMlVUG7PrDLTQBYJJ1To="; }; @@ -99,7 +100,7 @@ buildPythonPackage rec { propcache yarl ] - ++ optional-dependencies.speedups; + ++ finalAttrs.passthru.optional-dependencies.speedups; optional-dependencies.speedups = [ aiodns @@ -119,6 +120,7 @@ buildPythonPackage rec { pytest-codspeed pytest-cov-stub pytest-mock + pytest-timeout pytest-xdist pytestCheckHook re-assert @@ -167,10 +169,10 @@ buildPythonPackage rec { ''; meta = { - changelog = "https://docs.aiohttp.org/en/${src.tag}/changes.html"; + changelog = "https://docs.aiohttp.org/en/${finalAttrs.src.tag}/changes.html"; description = "Asynchronous HTTP Client/Server for Python and asyncio"; license = lib.licenses.asl20; homepage = "https://github.com/aio-libs/aiohttp"; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +})