Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 81 lines 1.7 kB view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, argon2_cffi 6, nose 7, nose_warnings_filters 8, glibcLocales 9, isPy3k 10, mock 11, jinja2 12, tornado 13, ipython_genutils 14, traitlets 15, jupyter 16, jupyter_core 17, jupyter_client 18, nbformat 19, nbconvert 20, ipykernel 21, terminado 22, requests 23, send2trash 24, pexpect 25, prometheus_client 26, pytestCheckHook 27}: 28 29buildPythonPackage rec { 30 pname = "notebook"; 31 version = "6.1.3"; 32 disabled = !isPy3k; 33 34 src = fetchPypi { 35 inherit pname version; 36 sha256 = "9990d51b9931a31e681635899aeb198b4c4b41586a9e87fbfaaed1a71d0a05b6"; 37 }; 38 39 LC_ALL = "en_US.utf8"; 40 41 checkInputs = [ nose pytestCheckHook glibcLocales ] 42 ++ (if isPy3k then [ nose_warnings_filters ] else [ mock ]); 43 44 propagatedBuildInputs = [ 45 jinja2 tornado ipython_genutils traitlets jupyter_core send2trash 46 jupyter_client nbformat nbconvert ipykernel terminado requests pexpect 47 prometheus_client argon2_cffi 48 ]; 49 50 # disable warning_filters 51 preCheck = lib.optionalString (!isPy3k) '' 52 echo "" > setup.cfg 53 ''; 54 55 postPatch = '' 56 # Remove selenium tests 57 rm -rf notebook/tests/selenium 58 export HOME=$TMPDIR 59 ''; 60 61 disabledTests = [ 62 # a "system_config" is generated, and fails many tests 63 "config" 64 "load_ordered" 65 # requires jupyter, but will cause circular imports 66 "test_run" 67 "TestInstallServerExtension" 68 "launch_socket" 69 "sock_server" 70 ]; 71 72 # Some of the tests use localhost networking. 73 __darwinAllowLocalNetworking = true; 74 75 meta = { 76 description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing"; 77 homepage = "https://jupyter.org/"; 78 license = lib.licenses.bsd3; 79 maintainers = with lib.maintainers; [ fridh ]; 80 }; 81}