python3Packages.aiohttp-jinja2: fix build with aiohttp 3.14
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user