From b9f50b7803a0d85bea6ef51ab3a75ec43add7a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 21 Jun 2022 00:55:26 +0000 Subject: [PATCH] python310Packages.jupyter_server: 1.11.2 -> 1.17.1 https://github.com/jupyter-server/jupyter_server/blob/v1.17.1/CHANGELOG.md fixes CVE-2022-24757 and CVE-2022-29241 --- .../python-modules/jupyter_server/default.nix | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/jupyter_server/default.nix b/pkgs/development/python-modules/jupyter_server/default.nix index 0001dd5e937..a140e2930b3 100644 --- a/pkgs/development/python-modules/jupyter_server/default.nix +++ b/pkgs/development/python-modules/jupyter_server/default.nix @@ -1,10 +1,12 @@ { lib , stdenv , buildPythonPackage -, fetchpatch , fetchPypi , pythonOlder +, pandoc , pytestCheckHook +, pytest-console-scripts +, pytest-timeout , pytest-tornasync , argon2-cffi , jinja2 @@ -28,21 +30,14 @@ buildPythonPackage rec { pname = "jupyter_server"; - version = "1.11.2"; - disabled = pythonOlder "3.6"; + version = "1.17.1"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "c1f32e0c1807ab2de37bf70af97a36b4436db0bc8af3124632b1f4441038bf95"; + sha256 = "a36781656645ae17b12819a49ace377c045bf633823b3e4cd4b0c88c01e7711b"; }; - patches = [ (fetchpatch - { name = "Normalize-file-name-and-path.patch"; - url = "https://github.com/jupyter-server/jupyter_server/pull/608/commits/345e26cdfd78651954b68708fa44119c2ac0dbd5.patch"; - sha256 = "1kqz3dyh2w0h1g1fbvqa13q17hb6y32694rlaasyg213mq6g4k32"; - }) - ]; - propagatedBuildInputs = [ argon2-cffi jinja2 @@ -64,7 +59,10 @@ buildPythonPackage rec { checkInputs = [ ipykernel + pandoc pytestCheckHook + pytest-console-scripts + pytest-timeout pytest-tornasync requests ]; @@ -74,19 +72,18 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - pytestFlagsArray = [ "jupyter_server" ]; - - # disabled failing tests disabledTests = [ - "test_server_extension_list" - "test_list_formats" - "test_base_url" - "test_culling" + "test_cull_idle" ] ++ lib.optionals stdenv.isDarwin [ # attempts to use trashcan, build env doesn't allow this "test_delete" ]; + disabledTestPaths = [ + "tests/services/kernels/test_api.py" + "tests/services/sessions/test_api.py" + ]; + __darwinAllowLocalNetworking = true; meta = with lib; {