summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-11-29 11:41:15 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 21:01:36 +0000
commit3feeaf0760ee8fd0fbf72c82e483151b64719952 (patch)
tree697a5903ce9a09ad97b167b6381c64f03a3bb68a /gnu
parent35a6ca06605b0252e88f117488e3d8070f870a63 (diff)
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-check.scm50
1 files changed, 24 insertions, 26 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 1c92ebf9e88..aa119c90eaf 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}.")
2334(define-public python-pylama 2334(define-public python-pylama
2335 (package 2335 (package
2336 (name "python-pylama") 2336 (name "python-pylama")
2337 (version "7.7.1") 2337 (version "8.4.1")
2338 (source 2338 (source
2339 (origin 2339 (origin
2340 (method url-fetch) 2340 (method git-fetch) ;no tests in PyPI archive
2341 (uri (pypi-uri "pylama" version)) 2341 (uri (git-reference
2342 (url "https://github.com/klen/pylama")
2343 (commit version)))
2344 (file-name (git-file-name name version))
2342 (sha256 2345 (sha256
2343 (base32 2346 (base32 "1x9cnyfnd574mj8ckd5hbfg2wy128zg0k2cd3zc7vdbnimksvqaq"))))
2344 "13vx7daqz2918y9s8q3v2i3xaq3ah43a9p58srqi6hqskkpm7blv")))) 2347 (build-system pyproject-build-system)
2345 (build-system python-build-system)
2346 (arguments 2348 (arguments
2347 `(#:phases (modify-phases %standard-phases 2349 (list
2348 (add-after 'unpack 'disable-failing-tests 2350 ;; Cycles with pylint: python-pylama -> python-isort -> python-pylint ->
2349 (lambda _ 2351 ;; python-pylama
2350 ;; Fails with: "ImportError: cannot import name 2352 #:tests? #f))
2351 ;; 'commented_out_code_line_numbers' from 'eradicate'".
2352 (delete-file "pylama/lint/pylama_eradicate.py")
2353 ;; Requires python-astroid, which fails to build on
2354 ;; Python 3.9+ (see:
2355 ;; https://github.com/PyCQA/astroid/issues/881).
2356 (delete-file "pylama/lint/pylama_pylint.py"))))))
2357 (native-inputs 2353 (native-inputs
2358 (list python-py python-pytest python-radon)) 2354 (list python-setuptools
2355 python-wheel))
2359 (propagated-inputs 2356 (propagated-inputs
2360 `(("python-mccabe" ,python-mccabe) 2357 (list python-mypy-minimal
2361 ("python-mypy", python-mypy-minimal) 2358 python-mccabe
2362 ("python-pycodestyle" ,python-pycodestyle) 2359 python-pycodestyle
2363 ("python-pydocstyle" ,python-pydocstyle) 2360 python-pydocstyle
2364 ("python-pyflakes" ,python-pyflakes))) 2361 python-pyflakes))
2365 (home-page "https://github.com/klen/pylama") 2362 (home-page "https://github.com/klen/pylama")
2366 (synopsis "Code audit tool for python") 2363 (synopsis "Code audit tool for python")
2367 (description "Pylama is a code audit tool for Python and JavaScript to check 2364 (description
2368for style, syntax and other code health metrics. It is essentially a 2365 "Pylama is a code audit tool for Python and JavaScript to check for
2369convenient wrapper above tools such as Pyflakes, pydocstyle, pycodestyle and 2366style, syntax and other code health metrics. It is essentially a convenient
2370McCabe, among others.") 2367wrapper above tools such as Pyflakes, pydocstyle, pycodestyle and McCabe,
2368among others.")
2371 (license license:lgpl3+))) 2369 (license license:lgpl3+)))
2372 2370
2373(define-public python-pyannotate 2371(define-public python-pyannotate