From 9745ad0a8216601541bd0613507f7aeb68daebcc Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 17 Oct 2024 13:51:46 +0200 Subject: [PATCH] python312Packages.jupysql: 0.10.13 -> 0.10.16 Diff: https://github.com/ploomber/jupysql/compare/refs/tags/0.10.13...0.10.16 Changelog: https://github.com/ploomber/jupysql/blob/0.10.16/CHANGELOG.md --- .../python-modules/jupysql/default.nix | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/jupysql/default.nix b/pkgs/development/python-modules/jupysql/default.nix index 01fa1c0f3163..56326d52d837 100644 --- a/pkgs/development/python-modules/jupysql/default.nix +++ b/pkgs/development/python-modules/jupysql/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -36,15 +37,15 @@ buildPythonPackage rec { pname = "jupysql"; - version = "0.10.13"; + version = "0.10.16"; pyproject = true; src = fetchFromGitHub { owner = "ploomber"; repo = "jupysql"; - rev = "refs/tags/${version}"; - hash = "sha256-vNuMGHFkatJS5KjxaOBwZ7JolIDAdYqGq3JNKSV2fKE="; + tag = version; + hash = "sha256-TIISiGvspRG0d/4nEyi8Tiu0y80D1Rf8puDEkGIeA08="; }; pythonRelaxDeps = [ "sqlalchemy" ]; @@ -81,33 +82,35 @@ buildPythonPackage rec { psutil ] ++ 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" - "test_resultset_dict" - "test_resultset_len" - "test_resultset_dicts" - "test_resultset_dataframe" - "test_resultset_csv" - "test_resultset_str" - "test_resultset_repr_html_when_feedback_is_2" - "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" - ]; + 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" + "test_resultset_dict" + "test_resultset_len" + "test_resultset_dicts" + "test_resultset_dataframe" + "test_resultset_csv" + "test_resultset_str" + "test_resultset_repr_html_when_feedback_is_2" + "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) + "test_no_errors_with_stored_query" + ]; disabledTestPaths = [ # require docker "src/tests/integration" - # require network access - "src/tests/test_telemetry.py" - # want to download test data from the network "src/tests/test_parse.py" "src/tests/test_ggplot.py"