Skip to content

Commit 0944b56

Browse files
authored
python312Packages.jupyter-server: fix on python3.13 by disabling warning (NixOS#377509)
2 parents d9333c4 + 14fb0b8 commit 0944b56

File tree

1 file changed

+13
-6
lines changed
  • pkgs/development/python-modules/jupyter-server

1 file changed

+13
-6
lines changed

pkgs/development/python-modules/jupyter-server/default.nix

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
stdenv,
44
buildPythonPackage,
55
fetchPypi,
6-
pythonOlder,
76
hatch-jupyter-builder,
87
hatchling,
98
pytestCheckHook,
@@ -37,20 +36,19 @@ buildPythonPackage rec {
3736
pname = "jupyter-server";
3837
version = "2.14.2";
3938
pyproject = true;
40-
disabled = pythonOlder "3.8";
4139

4240
src = fetchPypi {
4341
pname = "jupyter_server";
4442
inherit version;
4543
hash = "sha256-ZglQIaqWOM7SdsJIsdgYYuTFDyktV1kgu+lg3hxWsSs=";
4644
};
4745

48-
nativeBuildInputs = [
46+
build-system = [
4947
hatch-jupyter-builder
5048
hatchling
5149
];
5250

53-
propagatedBuildInputs = [
51+
dependencies = [
5452
argon2-cffi
5553
jinja2
5654
tornado
@@ -87,6 +85,11 @@ buildPythonPackage rec {
8785
pytestFlagsArray = [
8886
"-W"
8987
"ignore::DeprecationWarning"
88+
# 19 failures on python 3.13:
89+
# ResourceWarning: unclosed database in <sqlite3.Connection object at 0x7ffff2a0cc70>
90+
# TODO: Can probably be removed at the next update
91+
"-W"
92+
"ignore::pytest.PytestUnraisableExceptionWarning"
9093
];
9194

9295
preCheck = ''
@@ -111,6 +114,10 @@ buildPythonPackage rec {
111114
++ lib.optionals stdenv.hostPlatform.isLinux [
112115
# Failed: DID NOT RAISE <class 'tornado.web.HTTPError'>
113116
"test_copy_big_dir"
117+
]
118+
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
119+
# TypeError: the JSON object must be str, bytes or bytearray, not NoneType
120+
"test_terminal_create_with_cwd"
114121
];
115122

116123
disabledTestPaths = [
@@ -123,12 +130,12 @@ buildPythonPackage rec {
123130

124131
__darwinAllowLocalNetworking = true;
125132

126-
meta = with lib; {
133+
meta = {
127134
changelog = "https://github.com/jupyter-server/jupyter_server/blob/v${version}/CHANGELOG.md";
128135
description = "Backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
129136
mainProgram = "jupyter-server";
130137
homepage = "https://github.com/jupyter-server/jupyter_server";
131-
license = licenses.bsdOriginal;
138+
license = lib.licenses.bsdOriginal;
132139
maintainers = lib.teams.jupyter.members;
133140
};
134141
}

0 commit comments

Comments
 (0)