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>
This commit is contained in:
Nicolas Graves 2025-10-26 02:01:54 +02:00 committed by Sharlatan Hellseher
parent c566275595
commit 73f91d3e69
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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., McCabes 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., McCabes Complexity)
@item Halstead metrics (all of them)
@item the Maintainability Index (a Visual Studio metric)
@end itemize")
(license license:expat)))
(define-public python-rgbxy