summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-11-16 22:04:24 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:23:25 +0000
commitf2fa9e8a9f88875fb0172164f394ad839f2f0d2f (patch)
tree30c21cbc2a44c73910a97da1bfdbfd2825967352
parent30c420d552714a9c18f9bad4d7e8d2996c39b8e8 (diff)
gnu: python-pandas-2: Update to 2.2.3.
* gnu/packages/python-science.scm (python-pandas-2): Update to 2.2.3. [arguments]<test-flags>: Ignore move failing test which require optional dependencies. [native-inputs]: Remove python-cython-0.29.35; add python-cython-3. Change-Id: I402627132c9f0771470d89dea986c92855ae4ced
-rw-r--r--gnu/packages/python-science.scm59
1 files changed, 37 insertions, 22 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index fe439ff1c0..b188f113ae 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1115,7 +1115,7 @@ doing practical, real world data analysis in Python.")
(define-public python-pandas-2
(package
(name "python-pandas")
- (version "2.1.1")
+ (version "2.2.3")
(source
(origin
(method git-fetch)
@@ -1124,33 +1124,48 @@ doing practical, real world data analysis in Python.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1v9j38bvw739csdfl98ga6fqjdm61q3p5a2l7h364kg925nbc9r1"))))
+ (base32 "00f6jnplwg7iffnxdm4hpfls0ncbarc23933xq1rm5nk5g8dcldx"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "--pyargs" "pandas"
;; "--exitfirst"
- ;; FIXME "-n" (number->string (parallel-job-count))
+ "--numprocesses" (number->string (parallel-job-count))
"-m" "not slow and not network and not db"
- "-k" (string-append
- "not test_git_version"
- " and not test_show_versions_console"
- ;; Not testing ~ expansion.
- " and not test_expand_user"
- " and not test_get_handle_with_path"
- ;; These test access the internet (see:
- ;; https://github.com/pandas-dev/pandas/issues/45085).:
- ;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
- ;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
- " and not test_wrong_url"
- ;; TODO: Missing input
- " and not TestS3"
- " and not s3"
- ;; This test fails when run with pytest-xdist
- ;; (see: https://github.com/pandas-dev/pandas/issues/39096).
- " and not test_memory_usage"
- " and not test_parsing_tzlocal_deprecated"))
+ ;; All tests errored.
+ "--ignore=pandas/tests/io/test_clipboard.py"
+ "-k" (string-join
+ (list
+ "not test_git_version"
+ "test_show_versions_console"
+ ;; Not testing ~ expansion.
+ "test_expand_user"
+ "test_get_handle_with_path"
+ ;; These test access the internet (see:
+ ;; https://github.com/pandas-dev/pandas/issues/45085).:
+ ;; pandas/tests/io/xml/test_xml.py::test_wrong_url[lxml]
+ ;; pandas/tests/io/xml/test_xml.py::test_wrong_url[etree]
+ "test_wrong_url"
+ ;; TODO: Missing input
+ "TestS3"
+ "s3"
+ ;; This test fails when run with pytest-xdist
+ ;; (see: https://github.com/pandas-dev/pandas/issues/39096).
+ "test_memory_usage"
+ "test_parsing_tzlocal_deprecated"
+ ;; PyArrow is optional.
+ "test_style_bar_with_pyarrow_NA_values"
+ "test_very_negative_exponent"
+ "test_usecols_no_header_pyarrow"
+ "test_scientific_no_exponent[pyarrow-None]"
+ "test_inspect_getmembers"
+ ;; SciPy introduces cycle, optional.
+ "test_savefig"
+ ;; It requires a fresh python-tzdata, including new
+ ;; timezones.
+ "test_repr")
+ " and not "))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'version-set-by-guix
@@ -1200,7 +1215,7 @@ doing practical, real world data analysis in Python.")
(native-inputs
(list meson-python
python-beautifulsoup4
- python-cython-0.29.35
+ python-cython-3
python-html5lib
python-lxml
python-matplotlib