summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-26 02:01:54 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-29 00:29:46 +0000
commit73f91d3e69640870d2ad146470fb056c13075e1e (patch)
treef4fcc0c897680c8e1f73a0e1cbb2aa125d82673a /gnu/packages/python-xyz.scm
parentc566275595e97e978c41dc840db22df6df65e1d2 (diff)
gnu: python-radon: Update to 6.0.1.
* gnu/packages/python-xyz.scm (python-radon): Update to 6.0.1. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Adapt phase 'relax-requirements. Drop 'check phase replacement. [native-inputs]: Add python-poetry-core, python-setuptools. [description]: Improve style. Change-Id: Ic2864192aacc6d1f30904e7e5096bad2eabc005a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm55
1 files changed, 27 insertions, 28 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b113d7d7fcf..efa42e9e402 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25241,41 +25241,40 @@ filetypes can be easily added by creating plugins for them.")
(define-public python-radon
(package
(name "python-radon")
- (version "5.1.0")
+ (version "6.0.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "radon" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rubik/radon")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1vmf56zsf3paa1jadjcjghiv2kxwiismyayq42ggnqpqwm98f7fb"))))
- (build-system python-build-system)
+ (base32 "01n3idnrglgbjgwvvgs7yg9amjda3zs2659sp2zqpllp9gva73y9"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'relax-requirements
- (lambda _
- (substitute* "setup.py"
- ((".*'future'.*")
- "")
- (("mando>=0\\.6,<0\\.7")
- "mando>=0.6")
- (("colorama==0.4.1")
- "colorama>=0.4.1"))))
- (replace 'check
- (lambda _
- (invoke "python" "radon/tests/run.py"))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* (list "pyproject.toml" "requirements.txt")
+ (("(mando.*>=0\\.6),<0\\.8" _ mando-lower-bound)
+ mando-lower-bound)))))))
(propagated-inputs (list python-colorama python-mando))
- (native-inputs (list python-pytest python-pytest-mock))
+ (native-inputs (list python-poetry-core python-pytest python-pytest-mock
+ python-setuptools))
(home-page "https://radon.readthedocs.org/")
(synopsis "Code Metrics in Python")
- (description "Radon is a Python tool which computes various code metrics.
- Supported metrics are:
- @itemize @bullet
- @item raw metrics: SLOC, comment lines, blank lines, &c.
- @item Cyclomatic Complexity (i.e., McCabe’s Complexity)
- @item Halstead metrics (all of them)
- @item the Maintainability Index (a Visual Studio metric)
- @end itemize")
+ (description
+ "Radon is a Python tool which computes various code metrics. Supported
+metrics are:
+@itemize @bullet
+@item raw metrics: SLOC, comment lines, blank lines, &c.
+@item Cyclomatic Complexity (i.e., McCabe’s Complexity)
+@item Halstead metrics (all of them)
+@item the Maintainability Index (a Visual Studio metric)
+@end itemize")
(license license:expat)))
(define-public python-rgbxy