depot/third_party/nixpkgs/pkgs/development/python-modules/nexusformat/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

53 lines
967 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
setuptools-scm,
# tests
pytestCheckHook,
# dependencies
h5py,
hdf5plugin,
numpy,
scipy,
}:
buildPythonPackage rec {
pname = "nexusformat";
version = "1.0.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-UxU3PA/2r/uamdysbfC0L2JinHgfkXhssHIo2hf3zlA=";
};
pyproject = true;
build-system = [
setuptools
setuptools-scm
];
dependencies = [
h5py
hdf5plugin
numpy
scipy
];
pythonImportsCheck = [ "nexusformat.nexus" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Python API to open, create, and manipulate NeXus data written in the HDF5 format";
homepage = "https://github.com/nexpy/nexusformat";
changelog = "https://github.com/nexpy/nexusformat/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ oberth-effect ];
};
}