From 637e431c28a468a12b86b1b1df2f1172df391940 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 22:36:44 +0100 Subject: [PATCH v6 18/28] 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 81fff5966f..38f86e3a9f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1539,6 +1539,36 @@ (define-public python2-h5py (base32 "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4"))))))) +(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.36.1