19 # optional-dependencies
37 buildPythonPackage rec {
43 src = fetchFromGitHub {
46 rev = "refs/tags/${version}";
47 hash = "sha256-vNuMGHFkatJS5KjxaOBwZ7JolIDAdYqGq3JNKSV2fKE=";
50 pythonRelaxDeps = [ "sqlalchemy" ];
52 build-system = [ setuptools ];
65 optional-dependencies.dev = [
82 ] ++ optional-dependencies.dev;
85 # AttributeError: 'DataFrame' object has no attribute 'frame_equal'
86 "test_resultset_polars_dataframe"
87 # all of these are broken with later versions of duckdb; see
88 # https://github.com/ploomber/jupysql/issues/1030
89 "test_resultset_getitem"
92 "test_resultset_dicts"
93 "test_resultset_dataframe"
96 "test_resultset_repr_html_when_feedback_is_2"
97 "test_resultset_repr_html_with_reduced_feedback"
98 "test_invalid_operation_error"
99 "test_resultset_config_autolimit_dict"
100 # fails due to strict warnings
101 "test_calling_legacy_plotting_functions_displays_warning"
104 disabledTestPaths = [
106 "src/tests/integration"
108 # require network access
109 "src/tests/test_telemetry.py"
111 # want to download test data from the network
112 "src/tests/test_parse.py"
113 "src/tests/test_ggplot.py"
114 "src/tests/test_plot.py"
115 "src/tests/test_magic.py"
116 "src/tests/test_magic_plot.py"
118 # require js2py (which is unmaintained and insecure)
119 "src/tests/test_widget.py"
123 # tests need to write temp data
124 export HOME=$(mktemp -d)
127 pythonImportsCheck = [ "sql" ];
130 description = "Better SQL in Jupyter";
131 homepage = "https://github.com/ploomber/jupysql";
132 changelog = "https://github.com/ploomber/jupysql/blob/${version}/CHANGELOG.md";
133 license = lib.licenses.asl20;
134 maintainers = with lib.maintainers; [ pacien ];