guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 73f91d3e69640870d2ad146470fb056c13075e1e
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 26 02:01:54 2025 +0200

    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 <[email protected]>
---
 gnu/packages/python-xyz.scm | 55 ++++++++++++++++++++++-----------------------
 1 file changed, 27 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b113d7d7fc..efa42e9e40 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

Reply via email to