guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ca56c63101d37a96f84f72bdc62d5eacac8c25a5
Author: jgart <[email protected]>
AuthorDate: Mon Oct 6 14:44:07 2025 -0500

    gnu: python-peewee: Enable tests.
    
    * gnu/packages/databases.scm (python-peewee): Enable tests.
    [source]: Use upstream source since PyPI does not include tests.
    [arguments]: Run the tests.
    
    Change-Id: I359cfbfebba1b5664cb5fb2209879237860b4659
---
 gnu/packages/databases.scm | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index c2a7f8db49..a86a2de389 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3664,13 +3664,22 @@ on another machine, accessed via TCP/IP.")
     (version "3.18.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "peewee" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/coleifer/peewee";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "184n97vc9xy0whl8w54431fc4h5ij7mjwggnfbmg5bv1xdil59bp"))))
+        (base32 "1qd57cd33mf48q0xfmnld58xn5jpbgqrj1bnqlkjmk87y3g9i0q4"))))
     (build-system pyproject-build-system)
     (arguments
-     `(#:tests? #f))                    ; fails to import test data
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "python" "runtests.py")))))))
     (inputs
      (list sqlite))
     (native-inputs

Reply via email to