mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pycodestyle: Update to 2.12.1.
* gnu/packages/python-xyz.scm (python-pycodestyle): Update to 2.12.1. [build-system]: Swap to pyproject-build-system. [arguments]<test-flags>: Test options are ported from tox.ini. [phases]{check}: Adjust tests invocation procedure. [native-inputs]: Remove python-pytest; add python-setuptools and python-wheel. Change-Id: Ifb3f9065b928439cc2e3734c798d6b5d0858c7c3
This commit is contained in:
parent
943f217ecc
commit
50e9ce5f22
1 changed files with 15 additions and 11 deletions
|
@ -10270,24 +10270,28 @@ a simple netcat replacement with chaining support.")
|
||||||
(define-public python-pycodestyle
|
(define-public python-pycodestyle
|
||||||
(package
|
(package
|
||||||
(name "python-pycodestyle")
|
(name "python-pycodestyle")
|
||||||
(version "2.8.0")
|
(version "2.12.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pycodestyle" version))
|
(uri (pypi-uri "pycodestyle" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "089mszv65gwnz4nq8vryxqanlqk3bh3p4maxrnngdr5wighflf38"))))
|
||||||
"0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags #~(list "-m" "pycodestyle" "--statistics" "pycodestyle.py")
|
||||||
(replace 'check
|
#:phases
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
#~(modify-phases %standard-phases
|
||||||
(when tests?
|
;; Taken from Tox config
|
||||||
(invoke "pytest" "-vv")))))))
|
;; <https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16>.
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(apply invoke "python" "-v" test-flags)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest))
|
(list python-setuptools
|
||||||
|
python-wheel))
|
||||||
(home-page "https://pycodestyle.readthedocs.io/")
|
(home-page "https://pycodestyle.readthedocs.io/")
|
||||||
(synopsis "Python style guide checker")
|
(synopsis "Python style guide checker")
|
||||||
(description "@code{pycodestyle} (formerly pep8) is a tool to check
|
(description "@code{pycodestyle} (formerly pep8) is a tool to check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue