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

In particular this fixes build of python3.pkgs.glasgow
main
Vladimír Čunát 2 years ago
commit be8c46cde3
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 4
      pkgs/development/python-modules/amaranth/default.nix

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

Loading…
Cancel
Save