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