1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 h5py, 6 hdf5plugin, 7 numpy, 8 pytestCheckHook, 9 pythonOlder, 10 scipy, 11 setuptools-scm, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "nexusformat"; 17 version = "1.0.8"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.10"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-zsIOnWgMbUaJl3tHnpQiF3+Qy48dwKDAvFlg6z8hW/M="; 25 }; 26 27 build-system = [ 28 setuptools 29 setuptools-scm 30 ]; 31 32 dependencies = [ 33 h5py 34 hdf5plugin 35 numpy 36 scipy 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "nexusformat.nexus" ]; 42 43 meta = with lib; { 44 description = "Python API to open, create, and manipulate NeXus data written in the HDF5 format"; 45 homepage = "https://github.com/nexpy/nexusformat"; 46 changelog = "https://github.com/nexpy/nexusformat/releases/tag/v${version}"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ oberth-effect ]; 49 }; 50}