From 5a457656284cfb25e9305362e18adf4aff13f91a Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 10 Mar 2019 18:08:33 +0100 Subject: [PATCH] gnu: python-mako: Fix FTBFS with Pytest 4. * gnu/packages/python-xyz.scm (python-mako)[arguments]: New field. --- gnu/packages/python-xyz.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bf2fc56294..9749ce96bb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8000,6 +8000,14 @@ (define-public python-mako (base32 "1bi5gnr8r8dva06qpyx4kgjc6spm2k1y908183nbbaylggjzs0jf")))) (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-setup.cfg + (lambda _ + ;; Adjust setup.cfg for compatibility with Pytest 4. + (substitute* "setup.cfg" + (("\\[pytest\\]") "[tool:pytest]")) + #t))))) (propagated-inputs `(("python-markupsafe" ,python-markupsafe))) (native-inputs