me
/
guix
Archived
1
0
Fork 0

gnu: python-flake8-polyfill: Adjust tests for Pytest 4.

* gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]: Add
substitution in setup.cfg.
master
Marius Bakke 2019-07-18 23:15:50 +02:00
parent e77947db06
commit 40a7153d19
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 0 deletions

View File

@ -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")))