gnu: python-flake8: Update to 4.0.1.

* gnu/packages/python-xyz.scm (python-flake8): Update to 4.0.1.
[source]: Remove snippet.
[arguments]: Respect tests?.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Petr Hodina 2022-06-06 22:15:10 +02:00 committed by Efraim Flashner
parent 2660f99b57
commit 7e7c8b253c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -10219,27 +10219,21 @@ (define-public python-mccabe
(define-public python-flake8
(package
(name "python-flake8")
(version "3.9.2")
(version "4.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "flake8" version))
(sha256
(base32
"0sspgh2ph7bb5fmf49mrdhi7n5m421kfkxk1n0vn4akgg20q6lh7"))
(snippet
#~(begin
(use-modules (guix build utils))
(substitute* "setup.cfg"
;; Remove upper bound on pyflakes version.
(("(pyflakes >=.*), .*" _ pyflakes)
(string-append pyflakes "\n")))))))
"03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v"))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
(propagated-inputs (list python-pycodestyle python-entrypoints
python-pyflakes python-mccabe))
(native-inputs (list python-mock python-pytest))