summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-06-16 01:51:08 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-08 23:02:05 +0100
commita82556a59d73ad0d96af59ff2db06717a3ccf6b7 (patch)
treea0e10a126e1573d1e0c28930fd54777bd5efc0ce /gnu
parentf83b0f2019de1444049a430ae351f1055bff4664 (diff)
gnu: python-pandas: Update to 3.0.3.
This update includes releases since 2.3.3 (2025-09-29): - 3.0.3 (2026-05-11): <https://pandas.pydata.org/docs/whatsnew/v3.0.3.html> - 3.0.2 (2026-03-30): <https://pandas.pydata.org/docs/whatsnew/v3.0.2.html> - 3.0.1 (2026-02-17): <https://pandas.pydata.org/docs/whatsnew/v3.0.1.html> - 3.0.0 (2026-01-21): <https://pandas.pydata.org/docs/whatsnew/v3.0.0.html> * gnu/packages/python-science.scm (python-pandas): Update to 3.0.3. [source] <patches>: Drop all. [arguments] <test-flags>: Run more tests and provide extra options. <phases>: Fix custom 'check phase. [propagated-inputs]: Remove python-pytz and python-tzdata; add python-bottleneck, python-lxml, python-numba, and python-numexpr. [native-inputs]: Remove python-lxml and python-pytest-asyncio; add python-hypothesis, python-pytest-localserver, and python-pytz. Fixes: guix/guix#9244 Change-Id: I59a51ef1ba264905fc5fee44e894f1963cbd866d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-science.scm60
1 files changed, 26 insertions, 34 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 754bc77fab1..3b72cf31b29 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -4318,7 +4318,7 @@ tissue-specificity metrics for gene expression.")
4318(define-public python-pandas 4318(define-public python-pandas
4319 (package 4319 (package
4320 (name "python-pandas") 4320 (name "python-pandas")
4321 (version "2.3.3") 4321 (version "3.0.3")
4322 (source 4322 (source
4323 (origin 4323 (origin
4324 (method git-fetch) 4324 (method git-fetch)
@@ -4327,35 +4327,25 @@ tissue-specificity metrics for gene expression.")
4327 (commit (string-append "v" version)))) 4327 (commit (string-append "v" version))))
4328 (file-name (git-file-name name version)) 4328 (file-name (git-file-name name version))
4329 (sha256 4329 (sha256
4330 (base32 "0qf4frgj31kd9i544n8v03a0bv9mgml3f7n9n1rik187q3r8ygfg")) 4330 (base32 "1qagfjf4rrpx4xdw0bwg3q9g4k5vjplvifnx6k2frm8z2ws9hgds"))))
4331 (patches (search-patches "python-pandas-2-no-pytz_datetime.patch"))))
4332 (build-system pyproject-build-system) 4331 (build-system pyproject-build-system)
4333 (arguments 4332 (arguments
4334 (list 4333 (list
4335 ;; tests: 173093 passed, 24265 skipped, 990 xfailed, 77 xpassed, 110 warnings 4334 ;; tests: 185854 passed, 12827 skipped, 776 xfailed, 86 xpassed
4336 #:test-flags 4335 #:test-flags
4337 #~(list "-m" (string-join 4336 #~(list "-m" (string-join
4338 (list "not db" "network" "single_cpu" "slow" "slow_arm") 4337 (list "not db" "network" "single_cpu" "slow" "slow_arm")
4339 " and not ") 4338 " and not ")
4339 "-vv"
4340 ;; See: <https://github.com/pandas-dev/pandas/issues/54907>.
4341 "--no-strict-data-files"
4340 "--numprocesses" (number->string (min 4 (parallel-job-count))) 4342 "--numprocesses" (number->string (min 4 (parallel-job-count)))
4341 "-k" (string-join 4343 "-k" (string-join
4342 (list "not test_git_version" 4344 (list "not test_git_version"
4343 "test_parsing_tzlocal_deprecated"
4344 "test_show_versions_console" 4345 "test_show_versions_console"
4345 ;; XXX: Introduced by NumPy 2.4.6 and Cython 3.2.5: 4346 ;; DeprecationWarning: Bitwise inversion '~' on bool
4346 ;; NotImplementedError 4347 ;; is deprecated and will be removed in Python 3.16.
4347 ;; See: 4348 "test_scalar_unary[numexpr-pandas]"
4348 ;; <https://github.com/pandas-dev/pandas/issues/62820>,
4349 ;; <https://github.com/pandas-dev/pandas/issues/63078>.
4350 "test_categorical_block_pickle"
4351 "test_pickle"
4352 "test_pickle_freq"
4353 "test_pickle_preserves_block_ndim"
4354 "test_pickle_preserves_name"
4355 "test_pickle_round_trip"
4356 "test_pickle_roundtrip"
4357 "test_pickle_roundtrip_containers"
4358 "test_round_trip_current"
4359 ;; AssertionError: Series are different. 4349 ;; AssertionError: Series are different.
4360 #$@(if (target-64bit?) 4350 #$@(if (target-64bit?)
4361 '() 4351 '()
@@ -4372,18 +4362,20 @@ tissue-specificity metrics for gene expression.")
4372 (("git_version =.*") 4362 (("git_version =.*")
4373 (format #f "git_version = ~s~%" #$version))))) 4363 (format #f "git_version = ~s~%" #$version)))))
4374 (replace 'check 4364 (replace 'check
4375 (lambda* (#:key inputs outputs test-flags tests? #:allow-other-keys) 4365 (lambda* (#:key test-flags tests? #:allow-other-keys)
4376 (when tests? 4366 (when tests?
4367 ;; Tests don't work with "--pyargs pandas" or changing
4368 ;; directory to output, script is taken from pyproject.toml
4369 ;; file.
4377 (setenv "HOME" "/tmp") 4370 (setenv "HOME" "/tmp")
4378 (with-directory-excursion 4371 (delete-file-recursively "pandas")
4379 (string-append (string-append (site-packages inputs outputs) 4372 (invoke "python" "-c" (format #f "~a; ~a=[~{'~a', ~}]);"
4380 "/pandas")) 4373 "import pandas as pd"
4381 (apply invoke "pytest" "-vv" test-flags)))))))) 4374 "pd.test(extra_args"
4375 test-flags))))))))
4382 (propagated-inputs 4376 (propagated-inputs
4383 (list python-numpy 4377 (list python-numpy
4384 python-dateutil 4378 python-dateutil
4385 python-pytz
4386 python-tzdata
4387 ;; XXX: Pandas lists a lot of optional dependencies which are not 4379 ;; XXX: Pandas lists a lot of optional dependencies which are not
4388 ;; hard requirements, leave them listed here and commented out for 4380 ;; hard requirements, leave them listed here and commented out for
4389 ;; the reference purpose. Try to keep closure as bare minimal as 4381 ;; the reference purpose. Try to keep closure as bare minimal as
@@ -4393,17 +4385,17 @@ tissue-specificity metrics for gene expression.")
4393 ;; python-adbc-driver-postgresql 4385 ;; python-adbc-driver-postgresql
4394 ;; python-adbc-driver-sqlite 4386 ;; python-adbc-driver-sqlite
4395 ;; python-beautifulsoup4 4387 ;; python-beautifulsoup4
4396 ;; python-bottleneck 4388 python-bottleneck
4397 ;; python-fastparquet 4389 ;; python-fastparquet
4398 ;; python-fsspec 4390 ;; python-fsspec
4399 ;; python-gcsfs 4391 ;; python-gcsfs
4400 ;; python-html5lib 4392 ;; python-html5lib
4401 ;; python-hypothesis 4393 ;; python-hypothesis
4402 ;; python-jinja2 4394 ;; python-jinja2
4403 ;; python-lxml 4395 python-lxml
4404 ;; python-matplotlib 4396 ;; python-matplotlib
4405 ;; python-numba 4397 python-numba
4406 ;; python-numexpr 4398 python-numexpr
4407 ;; python-odfpy 4399 ;; python-odfpy
4408 ;; python-openpyxl 4400 ;; python-openpyxl
4409 ;; python-psycopg2 4401 ;; python-psycopg2
@@ -4413,7 +4405,6 @@ tissue-specificity metrics for gene expression.")
4413 ;; python-pyqt5 4405 ;; python-pyqt5
4414 ;; python-pyreadstat 4406 ;; python-pyreadstat
4415 ;; python-python-calamine 4407 ;; python-python-calamine
4416 ;; python-pytz
4417 ;; python-pyxlsb 4408 ;; python-pyxlsb
4418 ;; python-qtpy 4409 ;; python-qtpy
4419 ;; python-s3fs 4410 ;; python-s3fs
@@ -4428,11 +4419,12 @@ tissue-specificity metrics for gene expression.")
4428 (inputs 4419 (inputs
4429 (list xclip xsel)) 4420 (list xclip xsel))
4430 (native-inputs 4421 (native-inputs
4431 (list python-meson 4422 (list python-hypothesis
4432 python-lxml 4423 python-meson
4433 python-pytest 4424 python-pytest
4434 python-pytest-asyncio 4425 python-pytest-localserver
4435 python-pytest-xdist 4426 python-pytest-xdist
4427 python-pytz
4436 python-versioneer 4428 python-versioneer
4437 tzdata-for-tests)) 4429 tzdata-for-tests))
4438 (home-page "https://pandas.pydata.org") 4430 (home-page "https://pandas.pydata.org")