~ruther/guix-local

5a45e69d527774c3b89bbf753f1eafc41becd38d — Jake Forster 9 months ago 7327bab
gnu: python-colored: Update to 2.3.0 and enable tests.

* gnu/packages/python-xyz.scm (python-colored): Update to 2.3.0.
[arguments]: Remove '#:tests? #false'.
<#:phases>: New phase 'pre-check.
[native-inputs]: Remove python-setuptools and python-wheel.  Add
python-flit-core and python-pytest.

Change-Id: Iff216a7df0beca05edbe10d0d103586c3e0ece7d
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 11 insertions(+), 4 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +11 -4
@@ 1933,7 1933,7 @@ HoloViews, and Datashader.")
(define-public python-colored
  (package
    (name "python-colored")
    (version "1.4.4")
    (version "2.3.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference


@@ 1942,10 1942,17 @@ HoloViews, and Datashader.")
              (file-name (git-file-name name version))
              (sha256
               (base32
                "196ins0m7f90xz5dw764dlx060ziqbcydqzzq40b4ir5858baf3r"))))
                "00332xdjw5fcj5wx848693355nvlgcf8qmpwkvz3rngfg1q5bxa6"))))
    (build-system pyproject-build-system)
    (arguments (list #:tests? #false)) ;the tests are not run automatically
    (native-inputs (list python-setuptools python-wheel))
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'pre-check
            (lambda _
              ;; Tests expect ANSI escape codes for colors.
              (setenv "FORCE_COLOR" "1"))))))
    (native-inputs (list python-flit-core python-pytest))
    (home-page "https://gitlab.com/dslackw/colored")
    (synopsis "Simple library for color and formatting to terminal")
    (description "This is a very simple Python library for color and