This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 81c8d1c609 gnu: python-py-ubjson: Switch to pyproject-build-system and 
enable tests.
81c8d1c609 is described below

commit 81c8d1c609bea2f170ee698d3d340f81e75f5429
Author: Vagrant Cascadian <[email protected]>
AuthorDate: Wed Dec 17 11:43:19 2025 -0800

    gnu: python-py-ubjson: Switch to pyproject-build-system and enable tests.
    
    Fixes build failure with missing tests.
    
    * gnu/packages/web.scm (python-py-ubjson): Use pyproject-build-system.
    [native-inputs]: Add python-setuptools, python-coverage and lcov.  [source]:
    Use git-fetch.  [phases]: Add 'avoid-git-clean. Replace 'check.
---
 gnu/packages/web.scm | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 60ad3c6b7a..b9e553d38d 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -134,6 +134,7 @@
   #:use-module (gnu packages build-tools)
   #:use-module (gnu packages nss)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages code)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
@@ -7828,12 +7829,27 @@ system.")
     (version "0.16.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "py-ubjson" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/Iotic-Labs/py-ubjson/";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "10m4lmlhqqai90sd0z6qvm2ysrxz8g4q7yq0x0r3czhwb9lvigxr"))))
-    (build-system python-build-system)
+         "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-setuptools python-coverage lcov))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'avoid-git-clean
+                    (lambda _
+                      (substitute* "coverage_test.sh"
+                        (("git clean.*")
+                         ""))))
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (if tests?
+                          (invoke "./coverage_test.sh")))))))
     (home-page "https://github.com/Iotic-Labs/py-ubjson";)
     (synopsis "Universal Binary JSON encoder/decoder")
     (description

Reply via email to