1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 hatch-jupyter-builder,
7}:
8
9buildPythonPackage rec {
10 pname = "jupyterlab-widgets";
11 version = "3.0.15";
12 pyproject = true;
13
14 src = fetchPypi {
15 pname = "jupyterlab_widgets";
16 inherit version;
17 hash = "sha256-KSCIigwpIjUakgKBeVemjAfZlnNQTWzTc0UpnpcbsIs=";
18 };
19
20 # jupyterlab is required to build from source but we use the pre-build package
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace '"jupyterlab~=4.0"' ""
24 '';
25
26 build-system = [
27 hatchling
28 hatch-jupyter-builder
29 ];
30
31 # has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "jupyterlab_widgets" ];
35
36 meta = {
37 description = "Jupyter Widgets JupyterLab Extension";
38 homepage = "https://github.com/jupyter-widgets/ipywidgets";
39 license = lib.licenses.bsd3;
40 maintainers = [ ];
41 };
42}