depot/third_party/nixpkgs/pkgs/development/python-modules/pymatreader/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
943 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 ];
};
}