guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 290a91c5cb9d6a50209792c7f9ce24d85206afa2
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Nov 29 21:02:31 2025 +0100
gnu: seqmagick: Fix build and remove python-nose.
* gnu/packages/bioinformatics.scm (seqmagick)
[arguments]<#:phases>: Add phase 'set-version.
[native-inputs]: Remove python-wheel. Replace python-nose by
python-pynose.
Change-Id: I5a10d7702d59c6f837761ff96e11f0ff470e0626
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/bioinformatics.scm | 28 +++++++++++++++++++++++-----
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 2c04407d37..7f8183ef87 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -12056,16 +12056,34 @@ bioinformatics file formats, sequence alignment, and
more.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/fhcrc/seqmagick")
- (commit commit)))
+ (url "https://github.com/fhcrc/seqmagick")
+ (commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0syipb7m44s5bqrhs17bwr28svy2s83j8d93kbazav92jzszzsw4"))))
(build-system pyproject-build-system)
- (inputs
- (list python-biopython python-pygtrie))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ ;; Alternative of setup.py version check:
+ ;;
+ ;; subprocess.call(
+ ;; ('mkdir -p seqmagick/data && '
+ ;; 'git describe --tags --dirty > seqmagick/data/ver.tmp '
+ ;; '&& mv seqmagick/data/ver.tmp seqmagick/data/ver '
+ ;; '|| rm -f seqmagick/data/ver.tmp'),
+ ;; shell=True, stderr=open(os.devnull, "w"))
+ ;;
+ (lambda _
+ (mkdir "seqmagick/data")
+ (with-output-to-file "seqmagick/data/ver"
+ (lambda _ (display #$version))))))))
(native-inputs
- (list python-nose python-setuptools python-wheel))
+ (list python-pynose
+ python-setuptools))
+ (inputs (list python-biopython python-pygtrie))
(home-page "https://github.com/fhcrc/seqmagick")
(synopsis "Tools for converting and modifying sequence files")
(description