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.5.1"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "e945f6e02854a74994c596d9db83444a1850c01648f1574adf144fbbabe05c97"; 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}