15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
26 hash = "sha256-6DZmHVVxJspjUhJ9pzTmTvwAnQfvTp8OL2xZONz2XbU=";
29 npmDeps = fetchNpmDeps {
30 name = "${pname}-${version}-npm-deps";
32 hash = "sha256-ZJRBGMNn5clxMavimfl6Jwqf7M2pRo+WLne0gUWOiJ8=";
35 # We do not need the build hooks, because we do not need to
36 # build any JS components; these are present already in the PyPI artifact.
37 env.HATCH_BUILD_NO_HOOKS = true;
41 npmHooks.npmConfigHook
53 dependencies = [ anywidget ];
55 nativeCheckInputs = [ pytestCheckHook ];
56 pythonImportsCheck = [ "ipyniivue" ];
59 description = "Show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell";
60 homepage = "https://github.com/niivue/ipyniivue";
61 changelog = "https://github.com/niivue/ipyniivue/releases/tag/${version}";
62 license = licenses.bsd3;
63 maintainers = with maintainers; [ bcdarwin ];