From 423dbf36d3ae2e7fef5e84a88bb9d0dc2dcad017 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 22:53:44 +0100 Subject: [PATCH v5 19/32] gnu: Add python-pymatreader. * gnu/packages/python-xyz.scm (python-pymatreader): New variable. --- gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 732842afa4..91b8e0cc75 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1402,6 +1402,44 @@ (define-public python-h5io higher-level package than h5py.") (license license:bsd-3))) +(define-public python-pymatreader + (package + (name "python-pymatreader") + (version "0.0.29") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/obob/pymatreader.git/") + (commit "9ba9ddf53e367a86e14011553e949b666c564272"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r98907c2qfaqqh7cn200s5hqblvmpdbr3wbq1jasbm9nkzlligm")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) + (propagated-inputs + (list python-future + python-h5py + python-numpy + python-scipy + python-xmltodict)) + (native-inputs + (list python-pytest python-pytest-cov python-sphinx + python-sphinx-autobuild python-tox python-wheel + python-coverage python-flake8 python-codecov)) + (home-page "https://gitlab.com/obob/pymatreader") + (synopsis "Convenient reader for Matlab mat files") + (description "This is a Python module to read Matlab files. It works with +both the old (< 7.3) and the new (>= 7.3) HDF5 based format. The output should +be the same for both kinds of files.") + (license license:bsd-2))) + (define-public python-hnswlib (package (name "python-hnswlib") -- 2.34.0