~ruther/guix-local

73f91d3e69640870d2ad146470fb056c13075e1e — Nicolas Graves 4 months ago c566275
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>
1 files changed, 27 insertions(+), 28 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +27 -28
@@ 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