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:
parent
af1bf5dc71
commit
b9f50b7803
|
@ -1,10 +1,12 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchpatch
|
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pandoc
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pytest-console-scripts
|
||||||
|
, pytest-timeout
|
||||||
, pytest-tornasync
|
, pytest-tornasync
|
||||||
, argon2-cffi
|
, argon2-cffi
|
||||||
, jinja2
|
, jinja2
|
||||||
|
@ -28,21 +30,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jupyter_server";
|
pname = "jupyter_server";
|
||||||
version = "1.11.2";
|
version = "1.17.1";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
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 = [
|
propagatedBuildInputs = [
|
||||||
argon2-cffi
|
argon2-cffi
|
||||||
jinja2
|
jinja2
|
||||||
|
@ -64,7 +59,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
ipykernel
|
ipykernel
|
||||||
|
pandoc
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
pytest-console-scripts
|
||||||
|
pytest-timeout
|
||||||
pytest-tornasync
|
pytest-tornasync
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
@ -74,19 +72,18 @@ buildPythonPackage rec {
|
||||||
export PATH=$out/bin:$PATH
|
export PATH=$out/bin:$PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [ "jupyter_server" ];
|
|
||||||
|
|
||||||
# disabled failing tests
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_server_extension_list"
|
"test_cull_idle"
|
||||||
"test_list_formats"
|
|
||||||
"test_base_url"
|
|
||||||
"test_culling"
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
# attempts to use trashcan, build env doesn't allow this
|
# attempts to use trashcan, build env doesn't allow this
|
||||||
"test_delete"
|
"test_delete"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
"tests/services/kernels/test_api.py"
|
||||||
|
"tests/services/sessions/test_api.py"
|
||||||
|
];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue