1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 hatchling, 7 hatch-vcs, 8 anywidget, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "ipyniivue"; 14 version = "2.0.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-C0mYkguN4ZfxSLqETH3dUwXeoNcicrmAgp6e9IIT43s="; 22 }; 23 24 # We do not need the build hooks, because we do not need to 25 # build any JS components; these are present already in the PyPI artifact. 26 env.HATCH_BUILD_NO_HOOKS = true; 27 28 build-system = [ 29 hatchling 30 hatch-vcs 31 ]; 32 33 dependencies = [ anywidget ]; 34 35 nativeCheckImports = [ pytestCheckHook ]; 36 pythonImportsCheck = [ "ipyniivue" ]; 37 38 meta = with lib; { 39 description = "Show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell"; 40 homepage = "https://github.com/niivue/ipyniivue"; 41 changelog = "https://github.com/niivue/ipyniivue/releases/tag/${version}"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ bcdarwin ]; 44 }; 45}