18 buildPythonPackage rec {
23 disabled = pythonOlder "3.9";
25 src = fetchFromGitHub {
28 rev = "refs/tags/v${version}";
29 hash = "sha256-/yxRYK3ZTrYj+l3TQhFllyICnJjCZPd4ebNurCLZAYg=";
33 substituteInPlace pyproject.toml \
34 --replace-fail " --cov=plotnine --cov-report=xml" ""
37 build-system = [ setuptools-scm ];
39 pythonRelaxDeps = [ "mizani" ];
57 export HOME=$(mktemp -d)
60 pythonImportsCheck = [ "plotnine" ];
63 # Tries to change locale. The issued warning causes this test to fail.
64 # UserWarning: Could not set locale to English/United States. Some date-related tests may fail
65 "test_no_after_scale_warning"
70 # Generated plot images do not exactly match the expected files.
71 # After manually checking, this is caused by extremely subtle differences in label placement.
73 "tests/test_annotation_logticks.py"
74 "tests/test_coords.py"
75 "tests/test_facet_labelling.py"
76 "tests/test_facets.py"
77 "tests/test_geom_bar_col_histogram.py"
78 "tests/test_geom_bin_2d.py"
79 "tests/test_geom_boxplot.py"
80 "tests/test_geom_count.py"
81 "tests/test_geom_density_2d.py"
82 "tests/test_geom_density.py"
83 "tests/test_geom_dotplot.py"
84 "tests/test_geom_freqpoly.py"
85 "tests/test_geom_map.py"
86 "tests/test_geom_path_line_step.py"
87 "tests/test_geom_point.py"
88 "tests/test_geom_raster.py"
89 "tests/test_geom_rect_tile.py"
90 "tests/test_geom_ribbon_area.py"
91 "tests/test_geom_sina.py"
92 "tests/test_geom_smooth.py"
93 "tests/test_geom_text_label.py"
94 "tests/test_geom_violin.py"
95 "tests/test_layout.py"
96 "tests/test_position.py"
98 "tests/test_scale_internals.py"
99 "tests/test_scale_labelling.py"
100 "tests/test_stat_ecdf.py"
101 "tests/test_stat_function.py"
102 "tests/test_stat_summary.py"
103 "tests/test_theme.py"
105 # Linting / formatting: useless as it has nothing to do with the package functionning
106 # Disabling this prevents adding a dependency on 'ruff' and 'black'.
107 "tests/test_lint_and_format.py"
111 description = "Grammar of graphics for Python";
112 homepage = "https://plotnine.readthedocs.io/";
113 changelog = "https://github.com/has2k1/plotnine/releases/tag/v${version}";
114 license = lib.licenses.mit;
115 maintainers = with lib.maintainers; [ onny ];