gnu: python-pandas: Remove old version.

* gnu/packages/python-science.scm (python-pandas-0.25): Remove variable.
(python2-pandas): Inherit from PYTHON-PANDAS.
This commit is contained in:
Marius Bakke 2022-01-21 22:19:26 +01:00
parent 5ec4129907
commit 4f6cbc0aee
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -412,33 +412,10 @@ (define-public python-pandas
(properties `((python2-variant . ,(delay python2-pandas))))
(license license:bsd-3)))
(define-public python-pandas-0.25
(package
(inherit python-pandas)
(version "0.25.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "pandas" version))
(sha256
(base32
"191048m6kdc6yfvqs9w412lq60cfvigrsb57y0x116lwibgp9njj"))))
(arguments
(substitute-keyword-arguments (package-arguments python-pandas)
((#:phases phases)
`(modify-phases ,phases
(replace '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))
(delete 'prepare-x)))))))
;; Pandas 0.24.x are the last versions that support Python 2.
(define-public python2-pandas
(let ((pandas (package-with-python2
(strip-python2-variant python-pandas-0.25))))
(strip-python2-variant python-pandas))))
(package
(inherit pandas)
(version "0.24.2")