From 1ce9d179ba1fc40d8db15819095a6550b49118b9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 21 Apr 2025 14:14:39 +0200 Subject: [PATCH] python312Packages.jupysql: 0.10.17 -> 0.11.1 Diff: https://github.com/ploomber/jupysql/compare/refs/tags/0.10.17...refs/tags/0.11.1 Changelog: https://github.com/ploomber/jupysql/blob/0.11.1/CHANGELOG.md --- .../python-modules/jupysql/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/jupysql/default.nix b/pkgs/development/python-modules/jupysql/default.nix index 4e4ca10db874..09e10afcea2e 100644 --- a/pkgs/development/python-modules/jupysql/default.nix +++ b/pkgs/development/python-modules/jupysql/default.nix @@ -33,11 +33,12 @@ # tests pytestCheckHook, psutil, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "jupysql"; - version = "0.10.17"; + version = "0.11.1"; pyproject = true; @@ -45,7 +46,7 @@ buildPythonPackage rec { owner = "ploomber"; repo = "jupysql"; tag = version; - hash = "sha256-0lrcNKDKmM3Peodc9ZzgqkzwPHPLMxxXHAj4OOKWZxA="; + hash = "sha256-7wfKvKqDf8LlUiLoevNRxmq8x5wLheOgIeWz72oFcuw="; }; pythonRelaxDeps = [ "sqlalchemy" ]; @@ -80,12 +81,14 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook psutil + writableTmpDirAsHomeHook ] ++ optional-dependencies.dev; disabledTests = [ # AttributeError: 'DataFrame' object has no attribute 'frame_equal' "test_resultset_polars_dataframe" + # all of these are broken with later versions of duckdb; see # https://github.com/ploomber/jupysql/issues/1030 "test_resultset_getitem" @@ -99,11 +102,12 @@ buildPythonPackage rec { "test_resultset_repr_html_with_reduced_feedback" "test_invalid_operation_error" "test_resultset_config_autolimit_dict" + # fails due to strict warnings "test_calling_legacy_plotting_functions_displays_warning" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # Fatal Python error: Aborted (in matplotlib) + # RuntimeError: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1] "test_no_errors_with_stored_query" ]; @@ -122,11 +126,6 @@ buildPythonPackage rec { "src/tests/test_widget.py" ]; - preCheck = '' - # tests need to write temp data - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "sql" ]; meta = {