diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-05-02 13:57:31 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-05-05 22:38:17 +0200 |
commit | 3c0579849c2d0af8372cb27ef3412a571afdad2d (patch) | |
tree | db1b31d459f56eb9c438ebe715557b8ffdc9366f /gnu/packages | |
parent | 22eeb8f16ed8e8f4632122e878fdd7d316d37810 (diff) | |
download | guix-3c0579849c2d0af8372cb27ef3412a571afdad2d.tar.gz guix-3c0579849c2d0af8372cb27ef3412a571afdad2d.zip |
gnu: python-pandas-stubs: Accept numpy 1.23.
* gnu/packages/python-science.scm (python-pandas-stubs)[arguments]: Add phase
'relax-requirements.
Change-Id: I62e04574d53abd7d67068d08475522dd8989dcca
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python-science.scm | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 2def569348..75c04acd92 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1044,13 +1044,21 @@ doing practical, real world data analysis in Python.") " and not test_timedelta_cmp_rhs" " and not test_timestamp_cmp" " and not test_timestamp_eq_ne_rhs")) - #:phases '(modify-phases %standard-phases - (add-before 'check 'prepare-x - (lambda _ - (system "Xvfb &") - (setenv "DISPLAY" ":0") - ;; xsel needs to write a log file. - (setenv "HOME" (getcwd))))))) + #:phases + '(modify-phases %standard-phases + ;; We cannot yet upgrade numpy to 1.26 because numba needs numpy + ;; >1.24. + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + (("numpy = \\{ version = \">=1.26.0\", python = \"<3.13\" \\}") + "numpy = { version = \">=1.23.0\", python = \"<3.13\" }")))) + (add-before 'check 'prepare-x + (lambda _ + (system "Xvfb &") + (setenv "DISPLAY" ":0") + ;; xsel needs to write a log file. + (setenv "HOME" (getcwd))))))) (propagated-inputs (list python-types-pytz)) ;; Add python-fastparquet to native inputs once it has been packaged. Its ;; tests will be skipped for now. |