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