Merge #173053: amaranth: patch out use of deprecated jinja2 function

In particular this fixes build of python3.pkgs.glasgow
This commit is contained in:
Vladimír Čunát 2022-05-22 10:11:31 +02:00
commit be8c46cde3
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -57,6 +57,10 @@ buildPythonPackage rec {
substituteInPlace setup.py \
--replace "Jinja2~=2.11" "Jinja2>=2.11" \
--replace "pyvcd~=0.2.2" "pyvcd"
# jinja2.contextfunction was removed in jinja2 v3.1
substituteInPlace amaranth/build/plat.py \
--replace "@jinja2.contextfunction" "@jinja2.pass_context"
'';
pythonImportsCheck = [ "amaranth" ];