From 4b6427549c166bca64a0e9b8be430c31b446c7d9 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 7 Jan 2026 00:05:22 +0100 Subject: [PATCH] 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 Signed-off-by: Rutherther --- 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 5860421dfda1cd9f8805a78d7d2fa8e3e782b504..fcf560b9cc2e9ec55daf5c11ae28f26e04302eee 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -24294,34 +24294,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