guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit 2aa7e12727085d79502c4409519af103b2a49394
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 7 00:05:22 2026 +0100

    gnu: python-pyspoa: Switch to pyproject.
    
    * gnu/packages/bioinformatics.scm (python-pyspoa):
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Improve style.
    <#:phases>: Migrate phase 'check to <#:test-backend, #:test-flags>.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: Ib38a5779d6b73050126c377f6b0c5d5a53ef25aa
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/bioinformatics.scm | 44 ++++++++++++++++++-----------------------
 1 file changed, 19 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index e1ec20e387..839dc6f18f 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -24290,34 +24290,28 @@ browser.")
        (uri (git-reference
              (url "https://github.com/nanoporetech/pyspoa";)
              (commit (string-append "v" version))
-             (recursive? #true)))
+             (recursive? #t)))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "1lgf2shzhxkcsircd6vy46h27pjljd5q95fyz1cm3lkk702qbnzx"))))
-    (build-system python-build-system)
+        (base32 "1lgf2shzhxkcsircd6vy46h27pjljd5q95fyz1cm3lkk702qbnzx"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'build-libspoa
-           (lambda _
-             (mkdir-p "src/build")
-             (with-directory-excursion "src/build"
-               (invoke "cmake"
-                       "-Dspoa_optimize_for_portability=ON"
-                       "-DCMAKE_BUILD_TYPE=Release"
-                       "-DCMAKE_CXX_FLAGS=\"-I ../vendor/cereal/include/\" 
-fPIC"
-                       "..")
-               (invoke "make"))))
-         (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
-             (when tests?
-               (add-installed-pythonpath inputs outputs)
-               (invoke "python" "tests/test_pyspoa.py")))))))
-    (propagated-inputs
-     (list pybind11))
-    (native-inputs
-     `(("cmake" ,cmake-minimal)))
+     (list
+      #:test-backend #~'custom
+      #:test-flags #~(list "tests/test_pyspoa.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'build-libspoa
+            (lambda _
+              (mkdir-p "src/build")
+              (with-directory-excursion "src/build"
+                (invoke "cmake" "-Dspoa_optimize_for_portability=ON"
+                 "-DCMAKE_BUILD_TYPE=Release"
+                 "-DCMAKE_CXX_FLAGS=\"-I ../vendor/cereal/include/\" -fPIC"
+                 "..")
+                (invoke "make")))))))
+    (propagated-inputs (list pybind11))
+    (native-inputs (list cmake-minimal python-setuptools))
     (home-page "https://github.com/nanoporetech/pyspoa";)
     (synopsis "Python bindings for the SIMD partial order alignment library")
     (description

Reply via email to