amaranth: patch out use of deprecated jinja2 function

This commit is contained in:
Paul-Nicolas Madelaine 2022-05-21 08:00:00 +02:00
parent 39c65d7164
commit b32208c32c

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" ];