nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 919 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 h5py, 6 hdf5plugin, 7 numpy, 8 pytestCheckHook, 9 scipy, 10 setuptools-scm, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "nexusformat"; 16 version = "2.0.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-mIGbmpT9+ZPD3X999fhZSdSg/XgI/SdbEoE/oarjuS0="; 22 }; 23 24 build-system = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 dependencies = [ 30 h5py 31 hdf5plugin 32 numpy 33 scipy 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "nexusformat.nexus" ]; 39 40 meta = { 41 description = "Python API to open, create, and manipulate NeXus data written in the HDF5 format"; 42 homepage = "https://github.com/nexpy/nexusformat"; 43 changelog = "https://github.com/nexpy/nexusformat/releases/tag/v${version}"; 44 license = lib.licenses.bsd3; 45 maintainers = with lib.maintainers; [ oberth-effect ]; 46 }; 47}