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-06-20 14:57:18 +00:00
|
|
|
version = "3.0.11";
|
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-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-3VrGeVk8lprynJvtBUwk8mhCuqUTUhFHNnVrwDXe7ic=";
|
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-01 15:47:52 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|