me
/
guix
Archived
1
0
Fork 0

gnu: python-dask: Update to 2.9.0.

* gnu/packages/python-xyz.scm (python-dask): Update to 2.9.0.
[arguments]: Adjust phase to disable broken tests.
[propagated-inputs]: Add python-fsspec and python-packaging.
master
Ricardo Wurmus 2019-12-16 23:11:41 +01:00
parent c70a019137
commit 86c7ca07aa
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 12 additions and 12 deletions

View File

@ -15915,38 +15915,38 @@ decisions with any given backend.")
(define-public python-dask (define-public python-dask
(package (package
(name "python-dask") (name "python-dask")
(version "1.2.2") (version "2.9.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "dask" version)) (uri (pypi-uri "dask" version))
(sha256 (sha256
(base32 "0b29gvf96gmp20wicly3v3mhyc93zbm3mdv935fka6x0wax7cy2y")))) (base32 "1w1hqr8vyx6ygwflj2737dcy0mmgvrc0s602gnny8pzlcbs9m76b"))))
(build-system python-build-system) (build-system python-build-system)
;; A single test out of 5000+ fails. This test is marked as xfail when
;; pytest-xdist is used.
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'disable-broken-test (add-after 'unpack 'disable-broken-tests
(lambda _ (lambda _
;; This test is marked as xfail when pytest-xdist is used.
(substitute* "dask/tests/test_threaded.py" (substitute* "dask/tests/test_threaded.py"
(("def test_interrupt\\(\\)" m) (("def test_interrupt\\(\\)" m)
(string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
m))) m)))
(when (which "python2") ;; This one fails with a type error:
;; This test fails with recent Pandas: ;; TypeError: Already tz-aware, use tz_convert to convert.
;; <https://github.com/dask/dask/issues/3794>. (substitute* "dask/dataframe/tests/test_shuffle.py"
(substitute* "dask/dataframe/tests/test_dataframe.py" (("def test_set_index_timestamp\\(\\)" m)
(("def test_info\\(\\)" m) (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
(string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" m)))
m))))
#t)) #t))
(replace 'check (replace 'check
(lambda _ (invoke "pytest" "-vv")))))) (lambda _ (invoke "pytest" "-vv"))))))
(propagated-inputs (propagated-inputs
`(("python-cloudpickle" ,python-cloudpickle) `(("python-cloudpickle" ,python-cloudpickle)
("python-fsspec" ,python-fsspec)
("python-numpy" ,python-numpy) ("python-numpy" ,python-numpy)
("python-packaging" ,python-packaging)
("python-pandas" ,python-pandas) ("python-pandas" ,python-pandas)
("python-partd" ,python-partd) ("python-partd" ,python-partd)
("python-toolz" ,python-toolz) ("python-toolz" ,python-toolz)