2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
jupyter-packaging,
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab-widgets";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.0.13";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "jupyterlab_widgets";
|
|
|
|
inherit version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-opZtOFMowZQraDqM2WuJuN2CyLj4HdqQK7K8BtRvW+0=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# jupyterlab is required to build from source but we use the pre-build package
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"jupyterlab~=4.0"' ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ jupyter-packaging ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jupyterlab_widgets" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Jupyter Widgets JupyterLab Extension";
|
|
|
|
homepage = "https://github.com/jupyter-widgets/ipywidgets";
|
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|