gnu: Add fast5.

Moved here from guix-science.

* gnu/packages/bioinformatics.scm (fast5): New variable.

Change-Id: I3373be5d5c80f3600b88fd3f71eadf723443e1c9
This commit is contained in:
Ricardo Wurmus 2025-01-15 13:02:10 +01:00
parent 15a41ec5a7
commit 948a94d13b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7433,6 +7433,45 @@ (define-public express-beta-diversity
similarity of community members.")
(license license:gpl3+)))
(define-public fast5
(package
(name "fast5")
(version "0.6.5")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mateidavid/fast5")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1dsq3x1662ck1bcmcmqhblnhmypfppgysblgj2xr4lr6fl4si4pk"))))
(build-system pyproject-build-system)
(arguments
(list
#:tests? #f ;There are no tests.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'use-system-hdf5
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "HDF5_INCLUDE_DIR"
(string-append #$(this-package-input "hdf5") "/include"))
(setenv "HDF5_LIB_DIR"
(string-append #$(this-package-input "hdf5") "/lib"))))
(add-after 'unpack 'chdir
(lambda _
(chdir "python"))))))
(inputs (list hdf5))
(propagated-inputs
(list python-dateutil))
(native-inputs
(list python-cython python-setuptools python-wheel))
(home-page "https://github.com/mateidavid/fast5")
(synopsis "Library for accessing Oxford Nanopore sequencing data")
(description "This package provides a lightweight C++ library for accessing
Oxford Nanopore Technologies sequencing data.")
(license license:expat)))
(define-public fanc
(let ((commit "354401e52ba2320e6b1ba0d3b5aab3541d31c9f3")
(revision "1"))