1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 setuptools,
6 h5py,
7 numpy,
8 scipy,
9 xmltodict,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pymatreader";
15 version = "0.0.31";
16 pyproject = true;
17
18 src = fetchFromGitLab {
19 owner = "obob";
20 repo = "pymatreader";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-pYObmvqA49sHjpZcwXkN828R/N5CSpmr0OyyxzDiodQ=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 h5py
29 numpy
30 scipy
31 xmltodict
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "pymatreader" ];
37
38 meta = with lib; {
39 description = "Python package to read all kinds and all versions of Matlab mat files";
40 homepage = "https://gitlab.com/obob/pymatreader/";
41 changelog = "https://gitlab.com/obob/pymatreader/-/blob/${src.rev}/CHANGELOG.md";
42 license = licenses.bsd2;
43 maintainers = with maintainers; [ mbalatsko ];
44 };
45}