From 08fdf72b7b52767c83a3052badd77df9a654f91d Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 22:36:44 +0100 Subject: [PATCH v5 18/32] gnu: Add python-h5io. * gnu/packages/python-xyz.scm (python-h5io): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 117f21df4b..732842afa4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1372,6 +1372,36 @@ (define-public python-h5py (define-public python2-h5py (package-with-python2 python-h5py)) +(define-public python-h5io + (package + (name "python-h5io") + (version "0.1.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/h5io/h5io") + (commit (string-append "h5io-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mxsai8i7br20cqnydagng814g2hwhaq4aprsq2d4kmvff45s3az")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "h5io"))))))) + (propagated-inputs (list python-h5py python-numpy python-scipy)) + (native-inputs (list python-pytest python-pytest-cov)) + (home-page "http://h5io.github.io") + (synopsis "Python Objects Onto HDF5") + (description "h5io is a package designed to facilitate saving some +standard Python objects into the forward-compatible HDF5 format. It is a +higher-level package than h5py.") + (license license:bsd-3))) + (define-public python-hnswlib (package (name "python-hnswlib") -- 2.34.0