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