1{
2 buildPythonPackage,
3 fetchPypi,
4 setuptools,
5 comm,
6 ipykernel,
7 ipython,
8 jsonschema,
9 jupyterlab-widgets,
10 lib,
11 pytestCheckHook,
12 pytz,
13 traitlets,
14 widgetsnbextension,
15}:
16
17buildPythonPackage rec {
18 pname = "ipywidgets";
19 version = "8.1.7";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-FfGsBQucy+/UXcz7su9r7QAp2CeGgtVp1xuN2WvuA3Y=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 comm
31 ipython
32 jupyterlab-widgets
33 traitlets
34 widgetsnbextension
35 ];
36
37 nativeCheckInputs = [
38 ipykernel
39 jsonschema
40 pytestCheckHook
41 pytz
42 ];
43
44 meta = {
45 description = "IPython HTML widgets for Jupyter";
46 homepage = "https://github.com/jupyter-widgets/ipywidgets";
47 license = lib.licenses.bsd3;
48 };
49}