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