2021-04-26 19:14:03 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, jupyter-packaging
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterlab-widgets";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.0.10";
|
|
|
|
pyproject = true;
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "jupyterlab_widgets";
|
|
|
|
inherit version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-BPKsBJdnJ+T50PqRzcLxq4YPll5QTCnb1qZciCydBMA=";
|
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"' ""
|
|
|
|
'';
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
jupyter-packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ jonringer ];
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|