2024-08-20 14:40:09 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
h5py,
|
|
|
|
hdf5plugin,
|
|
|
|
numpy,
|
2024-10-27 08:01:49 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-08-20 14:40:09 +00:00
|
|
|
scipy,
|
2024-10-27 08:01:49 +00:00
|
|
|
setuptools-scm,
|
|
|
|
setuptools,
|
2024-08-20 14:40:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nexusformat";
|
2024-10-27 03:37:39 +00:00
|
|
|
version = "1.0.7";
|
2024-10-27 08:01:49 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
2024-08-20 14:40:09 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-27 03:37:39 +00:00
|
|
|
hash = "sha256-SSS6LTOdqLTHNGpBRO7UELF9qJb/sG8EwrE/azxk7wM=";
|
2024-08-20 14:40:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
h5py
|
|
|
|
hdf5plugin
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-10-27 08:01:49 +00:00
|
|
|
pythonImportsCheck = [ "nexusformat.nexus" ];
|
|
|
|
|
2024-08-20 14:40:09 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API to open, create, and manipulate NeXus data written in the HDF5 format";
|
|
|
|
homepage = "https://github.com/nexpy/nexusformat";
|
2024-10-27 08:01:49 +00:00
|
|
|
changelog = "https://github.com/nexpy/nexusformat/releases/tag/v${version}";
|
2024-08-20 14:40:09 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ oberth-effect ];
|
|
|
|
};
|
|
|
|
}
|