1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, nose 6, pytest 7, mock 8, ipython 9, ipykernel 10, jupyterlab-widgets 11, traitlets 12, notebook 13, widgetsnbextension 14}: 15 16buildPythonPackage rec { 17 pname = "ipywidgets"; 18 version = "7.6.5"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "00974f7cb4d5f8d494c19810fedb9fa9b64bffd3cda7c2be23c133a1ad3c99c5"; 23 }; 24 25 # Tests are not distributed 26 # doCheck = false; 27 28 buildInputs = [ nose pytest mock ]; 29 propagatedBuildInputs = [ 30 ipython 31 ipykernel 32 jupyterlab-widgets 33 traitlets 34 notebook 35 widgetsnbextension 36 ]; 37 38 checkPhase = '' 39 ${python.interpreter} -m unittest discover 40 ''; 41 42 meta = { 43 description = "IPython HTML widgets for Jupyter"; 44 homepage = "http://ipython.org/"; 45 license = lib.licenses.bsd3; 46 maintainers = with lib.maintainers; [ fridh ]; 47 }; 48}