python312Packages.ipylab: init at 1.0.0 (#381707)

This commit is contained in:
Gaétan Lepage
2025-02-13 19:35:41 +01:00
committed by GitHub
2 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
hatch-nodejs-version,
ipywidgets,
jupyterlab,
}:
buildPythonPackage rec {
pname = "ipylab";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-xPB0Sx+W1sRgW5hqpZ68zWRFG/cclIOgGat6UsVlYXA=";
};
build-system = [
hatchling
hatch-nodejs-version
jupyterlab
];
env.HATCH_BUILD_NO_HOOKS = true;
dependencies = [
ipywidgets
];
pythonImportsCheck = [ "ipylab" ];
# There are no tests
doCheck = false;
meta = {
description = "Control JupyterLab from Python notebooks.";
homepage = "https://github.com/jtpio/ipylab";
changelog = "https://github.com/jtpio/ipylab/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ flokli ];
badPlatforms = [
# Unclear why it breaks on darwin only
# ModuleNotFoundError: No module named 'ipylab._version'
lib.systems.inspect.patterns.isDarwin
];
};
}

View File

@@ -6492,6 +6492,8 @@ self: super: with self; {
ipydatawidgets = callPackage ../development/python-modules/ipydatawidgets { };
ipylab = callPackage ../development/python-modules/ipylab { };
ipynbname = callPackage ../development/python-modules/ipynbname { };
ipyniivue = callPackage ../development/python-modules/ipyniivue { };