[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/28: gnu: Add python-pylama.
From: |
guix-commits |
Subject: |
23/28: gnu: Add python-pylama. |
Date: |
Fri, 15 Jan 2021 16:34:53 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit ccdc0e5e081b412dae632c7a4c1552b64d9c3dc5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 15 00:37:22 2021 -0500
gnu: Add python-pylama.
* gnu/packages/python-check.scm (python-pylama): New variable.
---
gnu/packages/python-check.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b26824b..b58a3c2 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1110,6 +1110,47 @@ any Python VM with basically no runtime overhead.")
(delete 'ensure-no-mtimes-pre-1980))))
(native-inputs '()))))
+(define-public python-pylama
+ (package
+ (name "python-pylama")
+ (version "7.7.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pylama" version))
+ (sha256
+ (base32
+ "13vx7daqz2918y9s8q3v2i3xaq3ah43a9p58srqi6hqskkpm7blv"))))
+ (build-system python-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"))))))
+ (native-inputs
+ `(("python-py" ,python-py)
+ ("python-pytest" ,python-pytest)
+ ("python-radon" ,python-radon)))
+ (propagated-inputs
+ `(("python-mccabe" ,python-mccabe)
+ ("python-mypy", python-mypy-minimal)
+ ("python-pycodestyle" ,python-pycodestyle)
+ ("python-pydocstyle" ,python-pydocstyle)
+ ("python-pyflakes" ,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.")
+ (license license:lgpl3+)))
+
(define-public python-robber
(package
(name "python-robber")
- 13/28: gnu: python-babel: Fix build., (continued)
- 13/28: gnu: python-babel: Fix build., guix-commits, 2021/01/15
- 14/28: gnu: python-simplejson: Update to 3.17.2, fixing build., guix-commits, 2021/01/15
- 15/28: gnu: python-backpack: Fix build., guix-commits, 2021/01/15
- 16/28: gnu: python-hypothesis: Update to 6.0.2, guix-commits, 2021/01/15
- 11/28: gnu: python-pympler: Update to 0.9., guix-commits, 2021/01/15
- 12/28: gnu: python-3.9: Add a search path specification for PYTHONTZPATH., guix-commits, 2021/01/15
- 17/28: gnu: python-flake8-pyi: Update to 20.10.0., guix-commits, 2021/01/15
- 20/28: gnu: python-hypothesmith: Update to 0.1.8., guix-commits, 2021/01/15
- 18/28: gnu: python-virtualenv: Update to 20.3.1., guix-commits, 2021/01/15
- 19/28: gnu: Add python-libcst-minimal., guix-commits, 2021/01/15
- 23/28: gnu: Add python-pylama.,
guix-commits <=
- 24/28: gnu: python2-pylint: Remove package., guix-commits, 2021/01/15
- 21/28: gnu: python-typing-inspect: Fix build on Python 3.9., guix-commits, 2021/01/15
- 22/28: gnu: Add python-mypy-minimal., guix-commits, 2021/01/15
- 25/28: gnu: python2-orator: Remove package., guix-commits, 2021/01/15
- 28/28: gnu: python-isort: Update to 5.7.0, fixing build on Python 3.9., guix-commits, 2021/01/15
- 26/28: gnu: python2-factory-boy: Remove package., guix-commits, 2021/01/15
- 27/28: gnu: python2-isort: Remove package., guix-commits, 2021/01/15