Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 924 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, hatchling 6, hatch-jupyter-builder 7, ipywidgets 8, jupyter-ui-poll 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "ipyniivue"; 14 version = "1.0.2"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-vFbEV/ZMXvKZeQUR536OZQ/5uIkt4tOWcCGRPMdc34I"; 22 }; 23 24 nativeBuildInputs = [ hatchling hatch-jupyter-builder ]; 25 26 propagatedBuildInputs = [ ipywidgets jupyter-ui-poll ]; 27 28 nativeCheckImports = [ pytestCheckHook ]; 29 pythonImportsCheck = [ "ipyniivue" ]; 30 31 meta = with lib; { 32 description = "Show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell"; 33 homepage = "https://github.com/niivue/ipyniivue"; 34 changelog = "https://github.com/niivue/ipyniivue/releases/tag/${version}"; 35 license = licenses.bsd3; 36 maintainers = with maintainers; [ bcdarwin ]; 37 }; 38}