python3Packages.aiohttp-jinja2: fix build with aiohttp 3.14

This commit is contained in:
K900
2026-06-28 17:18:23 +03:00
parent 22927b9679
commit 8240c4665a
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
--- a/aiohttp_jinja2/__init__.py
+++ b/aiohttp_jinja2/__init__.py
@@ -38,7 +38,7 @@
"APP_CONTEXT_PROCESSORS_KEY"
)
APP_KEY: Final = web.AppKey[jinja2.Environment]("APP_KEY")
-REQUEST_CONTEXT_KEY: Final = "aiohttp_jinja2_context"
+REQUEST_CONTEXT_KEY: Final = web.RequestKey("jinja_context", dict)
_T = TypeVar("_T")
_P = ParamSpec("_P")
@@ -20,6 +20,11 @@ buildPythonPackage rec {
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
};
patches = [
# Adapted from https://github.com/aio-libs/aiohttp-jinja2/pull/1025
./aiohttp-3.14.patch
];
build-system = [ setuptools ];
dependencies = [