summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-01-07 00:05:22 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:24:03 +0100
commit4b6427549c166bca64a0e9b8be430c31b446c7d9 (patch)
tree4b16700afdb73d6dfd6fbc6f0bc9b9bc5194d73d
parent4347565cb889a8f37b09f24a94c59a84ef74d0d0 (diff)
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 <sharlatanus@gmail.com> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
-rw-r--r--gnu/packages/bioinformatics.scm44
1 files changed, 19 insertions, 25 deletions
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 5860421dfda..fcf560b9cc2 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