Skip to content

Commit 1afd8ac

Browse files
committed
python312Packages.jupyter-server: fix on python3.13 by disabling warning
1 parent 9747a1e commit 1afd8ac

File tree

1 file changed

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

1 file changed

+9
-6
lines changed

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

Lines changed: 9 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 = ''
@@ -123,12 +126,12 @@ buildPythonPackage rec {
123126

124127
__darwinAllowLocalNetworking = true;
125128

126-
meta = with lib; {
129+
meta = {
127130
changelog = "https://github.com/jupyter-server/jupyter_server/blob/v${version}/CHANGELOG.md";
128131
description = "Backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications";
129132
mainProgram = "jupyter-server";
130133
homepage = "https://github.com/jupyter-server/jupyter_server";
131-
license = licenses.bsdOriginal;
134+
license = lib.licenses.bsdOriginal;
132135
maintainers = lib.teams.jupyter.members;
133136
};
134137
}

0 commit comments

Comments
 (0)