gnu: python-plotnine: Reformat with guix style.

* gnu/packages/python-science.scm (python-plotnine): Reformat with guix style.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Troy Figiel 2024-01-18 10:54:58 +01:00 committed by Sharlatan Hellseher
parent 662ae5eac2
commit 0118fe6f85
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1742,15 +1742,15 @@ aggregated sum and more.")
(package (package
(name "python-plotnine") (name "python-plotnine")
(version "0.10.1") (version "0.10.1")
(source (origin (source
(method git-fetch) (origin
(uri (git-reference (method git-fetch)
(url "https://github.com/has2k1/plotnine") (uri (git-reference
(commit (string-append "v" version)))) (url "https://github.com/has2k1/plotnine")
(file-name (git-file-name name version)) (commit (string-append "v" version))))
(sha256 (file-name (git-file-name name version))
(base32 (sha256
"0lg53wcm00lj8zbb4q9yj4a0n0fqaqq7c7vj18bda0k56gg0fpwl")))) (base32 "0lg53wcm00lj8zbb4q9yj4a0n0fqaqq7c7vj18bda0k56gg0fpwl"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -1758,74 +1758,73 @@ aggregated sum and more.")
;; XXX: Check for any new failing tests during next update cycle. ;; XXX: Check for any new failing tests during next update cycle.
;; These all fail because the images are considered to be too different, ;; These all fail because the images are considered to be too different,
;; though they really do look fine. ;; though they really do look fine.
'(list "-k" (string-append '(list "-k"
"not TestThemes" (string-append "not TestThemes"
(string-join (string-join (list
(list ;; Image tests
;; Image tests "test_adjust_text"
"test_adjust_text" "test_annotation_logticks_coord_flip_discrete"
"test_annotation_logticks_coord_flip_discrete" "test_annotation_logticks_faceting"
"test_annotation_logticks_faceting" "test_arrow"
"test_arrow" "test_aslabeller_dict_0tag"
"test_aslabeller_dict_0tag" "test_caption_simple"
"test_caption_simple" "test_continuous_x"
"test_continuous_x" "test_continuous_x_fullrange"
"test_continuous_x_fullrange" "test_coord_trans_backtransforms"
"test_coord_trans_backtransforms" "test_coord_trans_se_false"
"test_coord_trans_se_false" "test_custom_shape"
"test_custom_shape" "test_datetime_scale_limits"
"test_datetime_scale_limits" "test_dir_v_ncol"
"test_dir_v_ncol" "test_discrete_x"
"test_discrete_x" "test_discrete_x_fullrange"
"test_discrete_x_fullrange" "test_facet_grid_drop_false"
"test_facet_grid_drop_false" "test_facet_grid_expression"
"test_facet_grid_expression" "test_facet_grid_space_ratios"
"test_facet_grid_space_ratios" "test_facet_wrap"
"test_facet_wrap" "test_facet_wrap_expression"
"test_facet_wrap_expression" "test_facet_wrap_label_both"
"test_facet_wrap_label_both" "test_label_context_wrap2vars"
"test_label_context_wrap2vars" "test_labeller_cols_both_grid"
"test_labeller_cols_both_grid" "test_labeller_cols_both_wrap"
"test_labeller_cols_both_wrap" "test_labeller_towords"
"test_labeller_towords" "test_missing_data_discrete_scale"
"test_missing_data_discrete_scale" "test_ribbon_facetting"
"test_ribbon_facetting" "test_stack_non_linear_scale"
"test_stack_non_linear_scale" "test_uneven_num_of_lines"
"test_uneven_num_of_lines"
;; Missing optional modules ;; Missing optional modules
"test_non_linear_smooth" "test_non_linear_smooth"
"test_non_linear_smooth_no_ci") "test_non_linear_smooth_no_ci")
" and not " 'prefix))) " and not "
#:phases 'prefix)))
'(modify-phases %standard-phases #:phases '(modify-phases %standard-phases
(add-before 'check 'pre-check (add-before 'check 'pre-check
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
;; The data files are referenced by the tests but they are not ;; The data files are referenced by the tests but they are not
;; installed. ;; installed.
(copy-recursively "plotnine/data" (copy-recursively "plotnine/data"
(string-append (site-packages inputs outputs) (string-append (site-packages inputs
"/plotnine/data")) outputs)
;; Matplotlib needs to be able to write its configuration file "/plotnine/data"))
;; somewhere. ;; Matplotlib needs to be able to write its configuration file
(setenv "MPLCONFIGDIR" "/tmp") ;; somewhere.
(setenv "TZ" "UTC") (setenv "MPLCONFIGDIR" "/tmp")
(setenv "TZDIR" (setenv "TZ" "UTC")
(search-input-directory inputs "share/zoneinfo"))))))) (setenv "TZDIR"
(propagated-inputs (search-input-directory inputs "share/zoneinfo")))))))
(list python-adjusttext (propagated-inputs (list python-adjusttext
python-matplotlib python-matplotlib
python-mizani python-mizani
python-numpy python-numpy
python-patsy python-patsy
python-scipy python-scipy
python-statsmodels)) python-statsmodels))
(native-inputs (native-inputs (list python-geopandas
(list python-geopandas python-mock
python-mock python-pandas
python-pandas python-pytest
python-pytest python-pytest-cov python-pytest-cov
tzdata-for-tests)) tzdata-for-tests))
(home-page "https://github.com/has2k1/plotnine") (home-page "https://github.com/has2k1/plotnine")
(synopsis "Grammar of Graphics for Python") (synopsis "Grammar of Graphics for Python")
(description (description