fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
hatchling,
|
|
hatch-vcs,
|
|
anywidget,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ipyniivue";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-C0mYkguN4ZfxSLqETH3dUwXeoNcicrmAgp6e9IIT43s=";
|
|
};
|
|
|
|
# We do not need the build hooks, because we do not need to
|
|
# build any JS components; these are present already in the PyPI artifact.
|
|
env.HATCH_BUILD_NO_HOOKS = true;
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [ anywidget ];
|
|
|
|
nativeCheckImports = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "ipyniivue" ];
|
|
|
|
meta = with lib; {
|
|
description = "Show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell";
|
|
homepage = "https://github.com/niivue/ipyniivue";
|
|
changelog = "https://github.com/niivue/ipyniivue/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|