mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
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:
parent
2660f99b57
commit
7e7c8b253c
1 changed files with 6 additions and 12 deletions
|
@ -10219,27 +10219,21 @@ (define-public python-mccabe
|
||||||
(define-public python-flake8
|
(define-public python-flake8
|
||||||
(package
|
(package
|
||||||
(name "python-flake8")
|
(name "python-flake8")
|
||||||
(version "3.9.2")
|
(version "4.0.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "flake8" version))
|
(uri (pypi-uri "flake8" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0sspgh2ph7bb5fmf49mrdhi7n5m421kfkxk1n0vn4akgg20q6lh7"))
|
"03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0"))))
|
||||||
(snippet
|
|
||||||
#~(begin
|
|
||||||
(use-modules (guix build utils))
|
|
||||||
(substitute* "setup.cfg"
|
|
||||||
;; Remove upper bound on pyflakes version.
|
|
||||||
(("(pyflakes >=.*), .*" _ pyflakes)
|
|
||||||
(string-append pyflakes "\n")))))))
|
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
||||||
(add-installed-pythonpath inputs outputs)
|
(when tests?
|
||||||
(invoke "pytest" "-v"))))))
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "pytest" "-v")))))))
|
||||||
(propagated-inputs (list python-pycodestyle python-entrypoints
|
(propagated-inputs (list python-pycodestyle python-entrypoints
|
||||||
python-pyflakes python-mccabe))
|
python-pyflakes python-mccabe))
|
||||||
(native-inputs (list python-mock python-pytest))
|
(native-inputs (list python-mock python-pytest))
|
||||||
|
|
Loading…
Reference in a new issue