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
This commit is contained in:
Robert Schütz 2022-06-21 00:55:26 +00:00
parent af1bf5dc71
commit b9f50b7803

View file

@ -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; {