mbakke pushed a commit to branch core-updates in repository guix. commit 40a7153d198821c4111d5bb864f872d2df108013 Author: Marius Bakke <mba...@fastmail.com> Date: Thu Jul 18 23:15:50 2019 +0200
gnu: python-flake8-polyfill: Adjust tests for Pytest 4. * gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]: Add substitution in setup.cfg. --- gnu/packages/python-xyz.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5a7a21d..e2ef589 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6541,6 +6541,12 @@ complexity of Python source code.") (modify-phases %standard-phases (replace 'check (lambda _ + ;; Be compatible with Pytest 4: + ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7 + (substitute* "setup.cfg" + (("\\[pytest\\]") + "[tool:pytest]")) + (setenv "PYTHONPATH" (string-append (getcwd) "/build/lib:" (getenv "PYTHONPATH")))