gnu: python-pandas: Update to 0.24.2.
* gnu/packages/python-xyz.scm (python-pandas): Update to 0.24.2. [phases]{patch-which}: Add phase. [inputs]: Add WHICH.
This commit is contained in:
parent
667c6ef516
commit
c0d43f6223
1 changed files with 17 additions and 6 deletions
|
@ -1011,13 +1011,13 @@ (define-public python2-schedule
|
||||||
(define-public python-pandas
|
(define-public python-pandas
|
||||||
(package
|
(package
|
||||||
(name "python-pandas")
|
(name "python-pandas")
|
||||||
(version "0.23.4")
|
(version "0.24.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pandas" version))
|
(uri (pypi-uri "pandas" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1x54pd7hr3y7qahx6b5bf2wzj54xvl8r3s1h4pl254pnmi3wl92v"))))
|
(base32 "18imlm8xbhcbwy4wa957a1fkamrcb0z988z006jpfda3ki09z4ag"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils)
|
`(#:modules ((guix build utils)
|
||||||
|
@ -1025,6 +1025,13 @@ (define-public python-pandas
|
||||||
(ice-9 ftw)
|
(ice-9 ftw)
|
||||||
(srfi srfi-26))
|
(srfi srfi-26))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-which
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((which (assoc-ref inputs "which")))
|
||||||
|
(substitute* "pandas/io/clipboard/__init__.py"
|
||||||
|
(("^CHECK_CMD = .*")
|
||||||
|
(string-append "CHECK_CMD = \"" which "\"\n"))))
|
||||||
|
#t))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((build-directory
|
(let ((build-directory
|
||||||
|
@ -1033,12 +1040,13 @@ (define-public python-pandas
|
||||||
(car (scandir "build"
|
(car (scandir "build"
|
||||||
(cut string-prefix? "lib." <>))))))
|
(cut string-prefix? "lib." <>))))))
|
||||||
;; Disable the "strict data files" option which causes
|
;; Disable the "strict data files" option which causes
|
||||||
;; the build to error out if required data files are not
|
;; the build to error out if required data files are
|
||||||
;; available (as is the case with PyPI archives).
|
;; not available (as is the case with PyPI archives).
|
||||||
(substitute* "setup.cfg"
|
(substitute* "setup.cfg"
|
||||||
(("addopts = --strict-data-files") "addopts = "))
|
(("addopts = --strict-data-files") "addopts = "))
|
||||||
(with-directory-excursion build-directory
|
(with-directory-excursion build-directory
|
||||||
;; Delete tests that require "moto" which is not yet in Guix.
|
;; Delete tests that require "moto" which is not yet
|
||||||
|
;; in Guix.
|
||||||
(for-each delete-file
|
(for-each delete-file
|
||||||
'("pandas/tests/io/conftest.py"
|
'("pandas/tests/io/conftest.py"
|
||||||
"pandas/tests/io/json/test_compression.py"
|
"pandas/tests/io/json/test_compression.py"
|
||||||
|
@ -1054,13 +1062,16 @@ (define-public python-pandas
|
||||||
("python-pytz" ,python-pytz)
|
("python-pytz" ,python-pytz)
|
||||||
("python-dateutil" ,python-dateutil)
|
("python-dateutil" ,python-dateutil)
|
||||||
("python-xlrd" ,python-xlrd)))
|
("python-xlrd" ,python-xlrd)))
|
||||||
|
(inputs
|
||||||
|
`(("which" ,which)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-cython" ,python-cython)
|
`(("python-cython" ,python-cython)
|
||||||
("python-beautifulsoup4" ,python-beautifulsoup4)
|
("python-beautifulsoup4" ,python-beautifulsoup4)
|
||||||
("python-lxml" ,python-lxml)
|
("python-lxml" ,python-lxml)
|
||||||
("python-html5lib" ,python-html5lib)
|
("python-html5lib" ,python-html5lib)
|
||||||
("python-nose" ,python-nose)
|
("python-nose" ,python-nose)
|
||||||
("python-pytest" ,python-pytest)))
|
("python-pytest" ,python-pytest)
|
||||||
|
("python-pytest-mock" ,python-pytest-mock)))
|
||||||
(home-page "https://pandas.pydata.org")
|
(home-page "https://pandas.pydata.org")
|
||||||
(synopsis "Data structures for data analysis, time series, and statistics")
|
(synopsis "Data structures for data analysis, time series, and statistics")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue