Files
nixpkgs/pkgs/development/python-modules/ipyniivue/default.nix
T
Martin Weinelt 244134ae10 python3Packages.ipyniivue: 2.1.0 -> 2.4.4
https://github.com/niivue/ipyniivue/releases/tag/v2.4.4

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:20 +01:00

63 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchNpmDeps,
nodejs,
npmHooks,
hatchling,
hatch-vcs,
anywidget,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ipyniivue";
version = "2.4.4";
pyproject = true;
src = fetchFromGitHub {
owner = "niivue";
repo = "ipyniivue";
tag = "v${version}";
hash = "sha256-Jk8Os8g2W5IRqLQSLQeH59ffGgWK/gjuUZgUl+HflVA=";
};
npmDeps = fetchNpmDeps {
name = "${pname}-${version}-npm-deps";
inherit src;
hash = "sha256-3IR2d4/i/e1dRlvKN21XnadUfx2lP5SuToQJ9tMhzp4=";
};
# 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;
nativeBuildInputs = [
nodejs
npmHooks.npmConfigHook
];
preBuild = ''
npm run build
'';
build-system = [
hatchling
hatch-vcs
];
dependencies = [ anywidget ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ipyniivue" ];
meta = {
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/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}