sharlatan pushed a commit to branch python-team
in repository guix.
commit 0552e2617d6279927b6728361dde406c6405a60d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Nov 29 11:41:15 2024 +0000
gnu: python-pylama: Update to 8.4.1.
* gnu/packages/python-check.scm (python-pylama): Update to 8.4.1.
[source]: Swap to git checkout containing tests.
[build-system]: Swap to pyrpoect-build-system.
[arguments]<phases>: Remove 'disable-failing-tests.
<tests>: Switch them off as cycling with python-pylint.
[native-inputs]: Remove python-py, python-pytest; add python-setuptools
and python-wheel.
[propagated-inputs]: Remove labels.
[description]: Adjust fill column.
Change-Id: If06ada7a80f5b68792adc0587ed7207dec92523f
---
gnu/packages/python-check.scm | 50 +++++++++++++++++++++----------------------
1 file changed, 24 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 1c92ebf9e8..aa119c90ea 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2334,40 +2334,38 @@ dtypes and shapes of arrays for NumPy, extending
@code{numpy.typing}.")
(define-public python-pylama
(package
(name "python-pylama")
- (version "7.7.1")
+ (version "8.4.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pylama" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/klen/pylama")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "13vx7daqz2918y9s8q3v2i3xaq3ah43a9p58srqi6hqskkpm7blv"))))
- (build-system python-build-system)
+ (base32 "1x9cnyfnd574mj8ckd5hbfg2wy128zg0k2cd3zc7vdbnimksvqaq"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'disable-failing-tests
- (lambda _
- ;; Fails with: "ImportError: cannot import name
- ;; 'commented_out_code_line_numbers' from 'eradicate'".
- (delete-file "pylama/lint/pylama_eradicate.py")
- ;; Requires python-astroid, which fails to build on
- ;; Python 3.9+ (see:
- ;; https://github.com/PyCQA/astroid/issues/881).
- (delete-file "pylama/lint/pylama_pylint.py"))))))
+ (list
+ ;; Cycles with pylint: python-pylama -> python-isort -> python-pylint ->
+ ;; python-pylama
+ #:tests? #f))
(native-inputs
- (list python-py python-pytest python-radon))
+ (list python-setuptools
+ python-wheel))
(propagated-inputs
- `(("python-mccabe" ,python-mccabe)
- ("python-mypy", python-mypy-minimal)
- ("python-pycodestyle" ,python-pycodestyle)
- ("python-pydocstyle" ,python-pydocstyle)
- ("python-pyflakes" ,python-pyflakes)))
+ (list python-mypy-minimal
+ python-mccabe
+ python-pycodestyle
+ python-pydocstyle
+ python-pyflakes))
(home-page "https://github.com/klen/pylama")
(synopsis "Code audit tool for python")
- (description "Pylama is a code audit tool for Python and JavaScript to
check
-for style, syntax and other code health metrics. It is essentially a
-convenient wrapper above tools such as Pyflakes, pydocstyle, pycodestyle and
-McCabe, among others.")
+ (description
+ "Pylama is a code audit tool for Python and JavaScript to check for
+style, syntax and other code health metrics. It is essentially a convenient
+wrapper above tools such as Pyflakes, pydocstyle, pycodestyle and McCabe,
+among others.")
(license license:lgpl3+)))
(define-public python-pyannotate