diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-02-15 21:53:01 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-02-15 21:56:40 +0100 |
| commit | f1d34da91261c71f91a02d6e47e1e21e8f368324 (patch) | |
| tree | 6d6708603c896fe406947ed41aefc8d7aaaffd0d | |
| parent | 9c540ceefda5ad0c3be073ad26cc11abf863fdf0 (diff) | |
gnu: python-plotnine: Update to 0.14.5.
* gnu/packages/python-science.scm (python-plotnine): Update to 0.14.5.
[arguments]: Disable more image tests; add phase 'pretend-version.
Change-Id: I7ba5cc47ff93187785b0d8c2f5e294e0d08c9f54
| -rw-r--r-- | gnu/packages/python-science.scm | 133 |
1 files changed, 73 insertions, 60 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1f4cdb239a1..127e9e378aa 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -3107,7 +3107,7 @@ aggregated sum and more.") | |||
| 3107 | (define-public python-plotnine | 3107 | (define-public python-plotnine |
| 3108 | (package | 3108 | (package |
| 3109 | (name "python-plotnine") | 3109 | (name "python-plotnine") |
| 3110 | (version "0.10.1") | 3110 | (version "0.14.5") |
| 3111 | (source | 3111 | (source |
| 3112 | (origin | 3112 | (origin |
| 3113 | (method git-fetch) | 3113 | (method git-fetch) |
| @@ -3116,7 +3116,7 @@ aggregated sum and more.") | |||
| 3116 | (commit (string-append "v" version)))) | 3116 | (commit (string-append "v" version)))) |
| 3117 | (file-name (git-file-name name version)) | 3117 | (file-name (git-file-name name version)) |
| 3118 | (sha256 | 3118 | (sha256 |
| 3119 | (base32 "0lg53wcm00lj8zbb4q9yj4a0n0fqaqq7c7vj18bda0k56gg0fpwl")))) | 3119 | (base32 "02ph0h312qn5a9ivh2qhv0x9sybccgbidzvb8im1hikwcqp8v2fw")))) |
| 3120 | (build-system pyproject-build-system) | 3120 | (build-system pyproject-build-system) |
| 3121 | (arguments | 3121 | (arguments |
| 3122 | (list | 3122 | (list |
| @@ -3124,64 +3124,77 @@ aggregated sum and more.") | |||
| 3124 | ;; XXX: Check for any new failing tests during next update cycle. | 3124 | ;; XXX: Check for any new failing tests during next update cycle. |
| 3125 | ;; These all fail because the images are considered to be too different, | 3125 | ;; These all fail because the images are considered to be too different, |
| 3126 | ;; though they really do look fine. | 3126 | ;; though they really do look fine. |
| 3127 | '(list "-k" | 3127 | ;; See https://github.com/has2k1/plotnine/issues/627 |
| 3128 | (string-append "not TestThemes" | 3128 | `(list ,@(map (lambda (file) (string-append "--ignore=" file)) |
| 3129 | (string-join (list | 3129 | (list "tests/test_aes.py" |
| 3130 | ;; Image tests | 3130 | "tests/test_annotation_logticks.py" |
| 3131 | "test_adjust_text" | 3131 | "tests/test_coords.py" |
| 3132 | "test_annotation_logticks_coord_flip_discrete" | 3132 | "tests/test_facet_labelling.py" |
| 3133 | "test_annotation_logticks_faceting" | 3133 | "tests/test_facets.py" |
| 3134 | "test_arrow" | 3134 | "tests/test_geom_bar_col_histogram.py" |
| 3135 | "test_aslabeller_dict_0tag" | 3135 | "tests/test_geom_bin_2d.py" |
| 3136 | "test_caption_simple" | 3136 | "tests/test_geom_boxplot.py" |
| 3137 | "test_continuous_x" | 3137 | "tests/test_geom_count.py" |
| 3138 | "test_continuous_x_fullrange" | 3138 | "tests/test_geom_density_2d.py" |
| 3139 | "test_coord_trans_backtransforms" | 3139 | "tests/test_geom_density.py" |
| 3140 | "test_coord_trans_se_false" | 3140 | "tests/test_geom_dotplot.py" |
| 3141 | "test_custom_shape" | 3141 | "tests/test_geom_freqpoly.py" |
| 3142 | "test_datetime_scale_limits" | 3142 | "tests/test_geom_map.py" |
| 3143 | "test_dir_v_ncol" | 3143 | "tests/test_geom_path_line_step.py" |
| 3144 | "test_discrete_x" | 3144 | "tests/test_geom_point.py" |
| 3145 | "test_discrete_x_fullrange" | 3145 | "tests/test_geom_raster.py" |
| 3146 | "test_facet_grid_drop_false" | 3146 | "tests/test_geom_rect_tile.py" |
| 3147 | "test_facet_grid_expression" | 3147 | "tests/test_geom_ribbon_area.py" |
| 3148 | "test_facet_grid_space_ratios" | 3148 | "tests/test_geom_sina.py" |
| 3149 | "test_facet_wrap" | 3149 | "tests/test_geom_smooth.py" |
| 3150 | "test_facet_wrap_expression" | 3150 | "tests/test_geom_text_label.py" |
| 3151 | "test_facet_wrap_label_both" | 3151 | "tests/test_geom_violin.py" |
| 3152 | "test_label_context_wrap2vars" | 3152 | "tests/test_layout.py" |
| 3153 | "test_labeller_cols_both_grid" | 3153 | "tests/test_position.py" |
| 3154 | "test_labeller_cols_both_wrap" | 3154 | "tests/test_qplot.py" |
| 3155 | "test_labeller_towords" | 3155 | "tests/test_scale_internals.py" |
| 3156 | "test_missing_data_discrete_scale" | 3156 | "tests/test_scale_labelling.py" |
| 3157 | "test_ribbon_facetting" | 3157 | "tests/test_stat_ecdf.py" |
| 3158 | "test_stack_non_linear_scale" | 3158 | "tests/test_stat_function.py" |
| 3159 | "test_uneven_num_of_lines" | 3159 | "tests/test_stat_summary.py" |
| 3160 | 3160 | "tests/test_theme.py")) | |
| 3161 | ;; This triggers an unexpected but harmless | 3161 | "-k" |
| 3162 | ;; warning. | 3162 | (string-append "not " |
| 3163 | "test_save_method" | 3163 | (string-join |
| 3164 | 3164 | (list | |
| 3165 | ;; Missing optional modules | 3165 | ;; This triggers an unexpected but harmless |
| 3166 | "test_non_linear_smooth" | 3166 | ;; warning. |
| 3167 | "test_non_linear_smooth_no_ci") | 3167 | "test_save_method" |
| 3168 | " and not " | 3168 | ;; This test fails to set the locale. |
| 3169 | 'prefix))) | 3169 | "test_no_after_scale_warning" |
| 3170 | #:phases '(modify-phases %standard-phases | 3170 | ;; Missing optional modules |
| 3171 | (add-before 'check 'pre-check | 3171 | "test_non_linear_smooth" |
| 3172 | (lambda* (#:key inputs outputs #:allow-other-keys) | 3172 | "test_non_linear_smooth_no_ci") |
| 3173 | ;; The data files are referenced by the tests but they are not | 3173 | " and not " |
| 3174 | ;; installed. | 3174 | 'infix))) |
| 3175 | (copy-recursively "plotnine/data" | 3175 | #:phases |
| 3176 | (string-append (site-packages inputs | 3176 | #~(modify-phases %standard-phases |
| 3177 | outputs) | 3177 | (add-before 'build 'pretend-version |
| 3178 | "/plotnine/data")) | 3178 | ;; The version string is usually derived via setuptools-scm, but |
| 3179 | ;; Matplotlib needs to be able to write its configuration file | 3179 | ;; without the git metadata available, the version string is set to |
| 3180 | ;; somewhere. | 3180 | ;; '999'. |
| 3181 | (setenv "MPLCONFIGDIR" "/tmp") | 3181 | (lambda _ |
| 3182 | (setenv "TZ" "UTC") | 3182 | (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) |
| 3183 | (setenv "TZDIR" | 3183 | (add-before 'check 'pre-check |
| 3184 | (search-input-directory inputs "share/zoneinfo"))))))) | 3184 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 3185 | ;; The data files are referenced by the tests but they are not | ||
| 3186 | ;; installed. | ||
| 3187 | (copy-recursively "plotnine/data" | ||
| 3188 | (string-append (site-packages inputs | ||
| 3189 | outputs) | ||
| 3190 | "/plotnine/data")) | ||
| 3191 | (setenv "CI" "1") ;skip tests that are known to fail on CI. | ||
| 3192 | ;; Matplotlib needs to be able to write its configuration file | ||
| 3193 | ;; somewhere. | ||
| 3194 | (setenv "MPLCONFIGDIR" "/tmp") | ||
| 3195 | (setenv "TZ" "UTC") | ||
| 3196 | (setenv "TZDIR" | ||
| 3197 | (search-input-directory inputs "share/zoneinfo"))))))) | ||
| 3185 | (propagated-inputs (list python-adjusttext | 3198 | (propagated-inputs (list python-adjusttext |
| 3186 | python-matplotlib | 3199 | python-matplotlib |
| 3187 | python-mizani | 3200 | python-mizani |
