mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: python-flake8-polyfill: Enable tests.
* gnu/packages/python.scm (python-flake8-polyfill, python2-flake8-polyfill)[native-inputs]: Add PYTHON-FLAKE8, PYTHON-MOCK, PYTHON-PYCODESTYLE and PYTHON-PYTEST. New field. [arguments]: Replace 'check' phase with custom command.
This commit is contained in:
parent
d296d30013
commit
2c1cad7ad2
1 changed files with 14 additions and 0 deletions
|
@ -6250,6 +6250,20 @@ (define-public python-flake8-polyfill
|
|||
(base32
|
||||
"02gn2wxvh9vnf7m7dld7ca4l60mg5c370hv3swwppkngwaqmcw67"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append (getcwd) "/build/lib:"
|
||||
(getenv "PYTHONPATH")))
|
||||
(zero? (system* "py.test" "-v")))))))
|
||||
(native-inputs
|
||||
`(("python-flake8" ,python-flake8)
|
||||
("python-mock" ,python-mock)
|
||||
("python-pycodestyle" ,python-pycodestyle)
|
||||
("python-pytest" ,python-pytest)))
|
||||
(home-page "https://gitlab.com/pycqa/flake8-polyfill")
|
||||
(synopsis "Polyfill package for Flake8 plugins")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue