depot/third_party/nixpkgs/pkgs/development/python-modules/pymatreader/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

46 lines
938 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitLab
, setuptools
, h5py
, numpy
, scipy
, xmltodict
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pymatreader";
version = "0.0.31";
pyproject = true;
src = fetchFromGitLab {
owner = "obob";
repo = "pymatreader";
rev = "refs/tags/v${version}";
hash = "sha256-pYObmvqA49sHjpZcwXkN828R/N5CSpmr0OyyxzDiodQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
h5py
numpy
scipy
xmltodict
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "pymatreader" ];
meta = with lib; {
description = "A python package to read all kinds and all versions of Matlab mat files";
homepage = "https://gitlab.com/obob/pymatreader/";
changelog = "https://gitlab.com/obob/pymatreader/-/blob/${src.rev}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [ mbalatsko ];
};
}