Merge pull request #107869 from elohmeier/jupyter3

authored by Sandro and committed by GitHub 3510e371 403c39d3

+184 -15
+38
pkgs/development/python-modules/jupyter-packaging/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + , packaging 6 + , pytestCheckHook 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "jupyter-packaging"; 11 + version = "0.7.12"; 12 + disabled = pythonOlder "3.7"; 13 + 14 + src = fetchPypi { 15 + inherit pname version; 16 + sha256 = "sha256-sUAyV3GIGn33t/LRSZe2GQY/51rnVrkCWFLkNGAAu7g="; 17 + }; 18 + 19 + propagatedBuildInputs = [ packaging ]; 20 + 21 + checkInputs = [ pytestCheckHook ]; 22 + 23 + preCheck = '' 24 + export HOME=$(mktemp -d) 25 + ''; 26 + 27 + # disable tests depending on network connection 28 + disabledTests = [ "test_develop" "test_install" ]; 29 + 30 + pythonImportsCheck = [ "jupyter_packaging" ]; 31 + 32 + meta = with lib; { 33 + description = "Jupyter Packaging Utilities"; 34 + homepage = "https://github.com/jupyter/jupyter-packaging"; 35 + license = licenses.bsd3; 36 + maintainers = [ maintainers.elohmeier ]; 37 + }; 38 + }
+75
pkgs/development/python-modules/jupyter_server/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pythonOlder 5 + , pytestCheckHook 6 + , pytest-tornasync 7 + , jinja2 8 + , tornado 9 + , pyzmq 10 + , ipython_genutils 11 + , traitlets 12 + , jupyter_core 13 + , jupyter_client 14 + , nbformat 15 + , nbconvert 16 + , send2trash 17 + , terminado 18 + , prometheus_client 19 + , anyio 20 + , requests 21 + }: 22 + 23 + buildPythonPackage rec { 24 + pname = "jupyter_server"; 25 + version = "1.4.1"; 26 + disabled = pythonOlder "3.6"; 27 + 28 + src = fetchPypi { 29 + inherit pname version; 30 + sha256 = "sha256-sBJvI39nlTPuxGJEz8ZtYeOh+OwPrS1HNS+hnT51Tkc="; 31 + }; 32 + 33 + postPatch = '' 34 + substituteInPlace setup.py \ 35 + --replace "anyio>=2.0.2" "anyio" 36 + ''; 37 + 38 + propagatedBuildInputs = [ 39 + jinja2 40 + tornado 41 + pyzmq 42 + ipython_genutils 43 + traitlets 44 + jupyter_core 45 + jupyter_client 46 + nbformat 47 + nbconvert 48 + send2trash 49 + terminado 50 + prometheus_client 51 + anyio 52 + ]; 53 + 54 + checkInputs = [ 55 + pytestCheckHook 56 + pytest-tornasync 57 + requests 58 + ]; 59 + 60 + preCheck = '' 61 + export HOME=$(mktemp -d) 62 + ''; 63 + 64 + pytestFlagsArray = [ "jupyter_server/tests/" ]; 65 + 66 + # disabled failing tests 67 + disabledTests = [ "test_server_extension_list" "test_list_formats" "test_base_url" ]; 68 + 69 + meta = with lib; { 70 + description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications."; 71 + homepage = "https://github.com/jupyter-server/jupyter_server"; 72 + license = licenses.bsdOriginal; 73 + maintainers = [ maintainers.elohmeier ]; 74 + }; 75 + }
+5 -3
pkgs/development/python-modules/jupyterlab/default.nix
··· 4 4 , jupyterlab_server 5 5 , notebook 6 6 , pythonOlder 7 + , jupyter-packaging 8 + , nbclassic 7 9 }: 8 10 9 11 buildPythonPackage rec { 10 12 pname = "jupyterlab"; 11 - version = "2.2.9"; 13 + version = "3.0.11"; 12 14 disabled = pythonOlder "3.5"; 13 15 14 16 src = fetchPypi { 15 17 inherit pname version; 16 - sha256 = "3be8f8edea173753dd838c1b6d3bbcb6f5c801121f824a477025c1b6a1d33dc6"; 18 + sha256 = "sha256-zkz08xFjzlGu0BPAGoV8BdQ6k8Ru1pAWbkhkT255R94="; 17 19 }; 18 20 19 - propagatedBuildInputs = [ jupyterlab_server notebook ]; 21 + propagatedBuildInputs = [ jupyterlab_server notebook jupyter-packaging nbclassic ]; 20 22 21 23 makeWrapperArgs = [ 22 24 "--set" "JUPYTERLAB_DIR" "$out/share/jupyter/lab"
+23 -12
pkgs/development/python-modules/jupyterlab_server/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , notebook 5 4 , jsonschema 6 5 , pythonOlder 7 6 , requests 8 - , pytest 7 + , pytestCheckHook 9 8 , pyjson5 9 + , Babel 10 + , jupyter_server 11 + , pytest-tornasync 12 + , pytestcov 13 + , strict-rfc3339 10 14 }: 11 15 12 16 buildPythonPackage rec { 13 17 pname = "jupyterlab_server"; 14 - version = "1.2.0"; 18 + version = "2.3.0"; 15 19 disabled = pythonOlder "3.5"; 16 20 17 21 src = fetchPypi { 18 22 inherit pname version; 19 - sha256 = "5431d9dde96659364b7cc877693d5d21e7b80cea7ae3959ecc2b87518e5f5d8c"; 23 + sha256 = "sha256-56AkWqPeI6GAPeLv9AHkykWUU42fWYBhNPMEGabYtqM="; 20 24 }; 21 25 22 - checkInputs = [ requests pytest ]; 23 - propagatedBuildInputs = [ notebook jsonschema pyjson5 ]; 26 + propagatedBuildInputs = [ requests jsonschema pyjson5 Babel jupyter_server ]; 24 27 25 - # test_listing test fails 26 - # this is a new package and not all tests pass 27 - doCheck = false; 28 + checkInputs = [ 29 + pytestCheckHook 30 + pytest-tornasync 31 + pytestcov 32 + strict-rfc3339 33 + ]; 28 34 29 - checkPhase = '' 30 - pytest 31 - ''; 35 + disabledTests = [ 36 + "test_get_locale" 37 + "test_get_installed_language_pack_locales_passes" 38 + "test_get_installed_package_locales" 39 + "test_get_installed_packages_locale" 40 + "test_get_language_packs" 41 + "test_get_language_pack" 42 + ]; 32 43 33 44 meta = with lib; { 34 45 description = "JupyterLab Server";
+37
pkgs/development/python-modules/nbclassic/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , notebook 5 + , pythonOlder 6 + , jupyter_server 7 + , pytestCheckHook 8 + , pytest-tornasync 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "nbclassic"; 13 + version = "0.2.6"; 14 + disabled = pythonOlder "3.5"; 15 + 16 + # tests only on github 17 + src = fetchFromGitHub { 18 + owner = "jupyterlab"; 19 + repo = pname; 20 + rev = version; 21 + sha256 = "sha256-stp0LZJAOCrnObvJIPEVt8mMb8yL29nlHECypbTg3ec="; 22 + }; 23 + 24 + propagatedBuildInputs = [ jupyter_server notebook ]; 25 + 26 + checkInputs = [ 27 + pytestCheckHook 28 + pytest-tornasync 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "Jupyter lab environment notebook server extension."; 33 + license = with licenses; [ bsd3 ]; 34 + homepage = "https://github.com/jupyterlab/nbclassic"; 35 + maintainers = [ maintainers.elohmeier ]; 36 + }; 37 + }
+6
pkgs/top-level/python-packages.nix
··· 3565 3565 3566 3566 jupyter_core = callPackage ../development/python-modules/jupyter_core { }; 3567 3567 3568 + jupyter_server = callPackage ../development/python-modules/jupyter_server { }; 3569 + 3568 3570 jupyterhub = callPackage ../development/python-modules/jupyterhub { }; 3569 3571 3570 3572 jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { }; ··· 3582 3584 jupyterlab-pygments = callPackage ../development/python-modules/jupyterlab-pygments { }; 3583 3585 3584 3586 jupyterlab_server = callPackage ../development/python-modules/jupyterlab_server { }; 3587 + 3588 + jupyter-packaging = callPackage ../development/python-modules/jupyter-packaging { }; 3585 3589 3586 3590 jupyter-repo2docker = callPackage ../development/python-modules/jupyter-repo2docker { 3587 3591 pkgs-docker = pkgs.docker; ··· 4485 4489 natsort = callPackage ../development/python-modules/natsort { }; 4486 4490 4487 4491 naturalsort = callPackage ../development/python-modules/naturalsort { }; 4492 + 4493 + nbclassic = callPackage ../development/python-modules/nbclassic { }; 4488 4494 4489 4495 nbclient = callPackage ../development/python-modules/nbclient { }; 4490 4496