guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: python-colorful: Enable tests.


From: guix-commits
Subject: 01/05: gnu: python-colorful: Enable tests.
Date: Tue, 15 Nov 2022 05:31:59 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 153e7d895656ad9027083614f945f65cc165c93e
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Wed Nov 9 19:48:31 2022 +0000

    gnu: python-colorful: Enable tests.
    
    * gnu/packages/python-xyz.scm (python-colorful): Enable tests.
    [source]: Use git checkout which has tests.
    [build-system]: Use pyproject-build-system.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/python-xyz.scm | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7624593647..845cc4d4a5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -677,16 +677,14 @@ git integration, command-line support, and a curses-based 
TUI.")
     (version "0.5.4")
     (source
      (origin
-       (method url-fetch)
-       (uri
-        (pypi-uri "colorful" version))
+       (method git-fetch)   ; no tests data in PyPi package
+       (uri (git-reference
+             (url "https://github.com/timofurrer/colorful";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "1sh7g2cn1fyz2hzmzs933razdxi2bna9i1lxa790r9pdwba8m146"))))
-    (build-system python-build-system)
-    ;; FIXME: tests cannot be computed:
-    ;; "Can't perform this operation for unregistered loader type"
-    (arguments
-     `(#:tests? #f))
+        (base32 "1fcz5v8b318a3dsdha4c874jsf3wmcw3f25bv2csixclyzacli98"))))
+    (build-system pyproject-build-system)
     (native-inputs
      (list python-coverage python-flake8 python-pytest))
     (propagated-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]