From 51d1b0566a33922076ca66ace32d7c679ef892c3 Mon Sep 17 00:00:00 2001 From: Daniel Macks Date: Mon, 2 Dec 2024 02:40:32 -0500 Subject: [PATCH] jinja2-py37: pytest compat fix --- .../main/finkinfo/libs/pythonmods/jinja2-py-3.0.3.info | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/jinja2-py-3.0.3.info b/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/jinja2-py-3.0.3.info index b1d39a4da35..d2cdc1c7c87 100644 --- a/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/jinja2-py-3.0.3.info +++ b/10.9-libcxx/stable/main/finkinfo/libs/pythonmods/jinja2-py-3.0.3.info @@ -25,6 +25,14 @@ Depends: << << Source: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%v.tar.gz Source-Checksum: SHA256(611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7) +PatchScript: << +#!/bin/sh -ev + if [ '%type_pkg[python]' == '37' ]; then + # compatibility with pytest >= 7.2: + # backport from jinja 3.1.3 + perl -pi -e 's/def teardown/def teardown_method/' tests/test_loader.py + fi +<< CompileScript: << chmod u+w *