From ead1ee9e41b2d8c6b6044502cedb6543bd42fbd1 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Sun, 6 Feb 2022 22:53:44 +0100 Subject: [PATCH v6 19/28] 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 38f86e3a9f..ff9d06595a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1569,6 +1569,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.30") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/obob/pymatreader.git/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14nzk5rjmg4mb2kcl579ri13dbd6ssznxbbix84s69ihdrv903iy")))) + (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.36.1