Files
nixpkgs/pkgs/development/python-modules/nglview/default.nix
Fabian Affolter 34983b1255 python3Packages.nglview: 4.0 -> 4.0.1
https://github.com/nglviewer/nglview/releases/tag/v4.0.1

This commit was automatically generated using update-python-libraries.
2026-10-08 18:50:28 +02:00

76 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonRelaxDepsHook,
notebook,
ipywidgets,
ipykernel,
numpy,
jupyter-packaging,
jupyter-core,
notebook-shim,
setuptools-scm,
writableTmpDirAsHomeHook,
pytestCheckHook,
mock,
pillow,
ase,
}:
buildPythonPackage rec {
pname = "nglview";
version = "4.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-HhW4Gbn4raPlIeWH0kzDdUVzIDzJnuXYAc7yjZkoZaU=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
# NGLview demands numpy < 2.3, but nixpkgs ships >= 2.4
pythonRelaxDeps = [ "numpy" ];
build-system = [
jupyter-packaging
jupyter-core
notebook-shim
setuptools-scm
writableTmpDirAsHomeHook
];
dependencies = [
notebook
ipywidgets
ipykernel
numpy
];
pythonImportsCheck = [ "nglview" ];
nativeCheckInputs = [
pytestCheckHook
mock
pillow
ase
];
disabledTests = [
# requires parmed
"test_show_schrodinger"
# requires older moviepy
"test_movie_maker"
];
meta = {
description = "IPython/Jupyter widget to interactively view molecular structures and trajectories";
homepage = "https://github.com/nglviewer/nglview";
changelog = "https://github.com/nglviewer/nglview/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ guelakais ];
};
}