python312Packages.ipylab: init at 1.0.0 (#381707)
This commit is contained in:
50
pkgs/development/python-modules/ipylab/default.nix
Normal file
50
pkgs/development/python-modules/ipylab/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user