1{ lib 2, buildPythonPackage 3, fetchPypi 4, nose 5, nose_warnings_filters 6, glibcLocales 7, isPy3k 8, mock 9, jinja2 10, tornado 11, ipython_genutils 12, traitlets 13, jupyter_core 14, jupyter_client 15, nbformat 16, nbconvert 17, ipykernel 18, terminado 19, requests 20, send2trash 21, pexpect 22}: 23 24buildPythonPackage rec { 25 pname = "notebook"; 26 version = "5.4.0"; 27 28 src = fetchPypi { 29 inherit pname version; 30 sha256 = "dd431fad9bdd25aa9ff8265da096ef770475e21bf1d327982611a7de5cd904ca"; 31 }; 32 33 LC_ALL = "en_US.utf8"; 34 35 buildInputs = [ nose glibcLocales ] 36 ++ (if isPy3k then [ nose_warnings_filters ] else [ mock ]); 37 38 propagatedBuildInputs = [ 39 jinja2 tornado ipython_genutils traitlets jupyter_core send2trash 40 jupyter_client nbformat nbconvert ipykernel terminado requests pexpect 41 ]; 42 43 # disable warning_filters 44 preCheck = lib.optionalString (!isPy3k) '' 45 echo "" > setup.cfg 46 cat setup.cfg 47 ''; 48 checkPhase = '' 49 runHook preCheck 50 mkdir tmp 51 HOME=tmp nosetests -v 52 ''; 53 54 meta = { 55 description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing"; 56 homepage = http://jupyter.org/; 57 license = lib.licenses.bsd3; 58 maintainers = with lib.maintainers; [ fridh globin ]; 59 }; 60}