gnu: python-seaborn: Update to 0.11.2.

* gnu/packages/python-xyz.scm (python-seaborn): Update to 0.11.2.
This commit is contained in:
Maxim Cournoyer 2022-04-29 21:22:33 -04:00
parent 6e82d2fa0d
commit 3ce963254b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -10349,48 +10349,39 @@ (define-public python-seaborn
(package (package
(name "python-seaborn") (name "python-seaborn")
(version "0.11.2") (version "0.11.2")
(source (source (origin
(origin (method url-fetch)
(method url-fetch) (uri (pypi-uri "seaborn" version))
(uri (pypi-uri "seaborn" version)) (sha256
(sha256 (base32
(base32 "1xpl3zb945sihsiwm9q1yyx84sakk1phcg0fprj6i0j0dllfjifg")) "1xpl3zb945sihsiwm9q1yyx84sakk1phcg0fprj6i0j0dllfjifg"))
(patches (search-patches "python-seaborn-kde-test.patch" (patches (search-patches "python-seaborn-kde-test.patch"
"python-seaborn-2690.patch")))) "python-seaborn-2690.patch"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases (modify-phases %standard-phases
(modify-phases %standard-phases (add-after 'unpack 'patch-more-tests
(add-after 'unpack 'patch-more-tests (lambda _
(lambda _ (substitute* "seaborn/tests/test_distributions.py"
(substitute* "seaborn/tests/test_distributions.py" (("get_contour_color\\(ax\\.collections\\[0\\]\\)")
(("get_contour_color\\(ax\\.collections\\[0\\]\\)") "get_contour_color(ax.collections[0])")
"get_contour_color(ax.collections[0])") (("c\\.get_color\\(\\)") "get_contour_color(c)")
(("c\\.get_color\\(\\)") "get_contour_color(c)") (("def test_hue_ignores_cmap")
"def skip_test_hue_ignores_cmap")
;; These three are borked and have been fixed upstream, but (("def test_fill_artists")
;; there's no simple patch we could apply here, so we just "def skip_test_fill_artists")
;; disable them. (("def test_with_rug") "def skip_test_with_rug"))))
(("def test_hue_ignores_cmap") (add-before 'check 'start-xserver
"def skip_test_hue_ignores_cmap") (lambda _
(("def test_fill_artists") (system "Xvfb :1 &")
"def skip_test_fill_artists") (setenv "DISPLAY" ":1")))
(("def test_with_rug") (replace 'check
"def skip_test_with_rug")))) (lambda* (#:key tests? #:allow-other-keys)
(add-before 'check 'start-xserver (when tests?
(lambda _ (invoke "pytest" "seaborn")))))))
;; There must be a running X server and make check doesn't (propagated-inputs (list python-pandas python-matplotlib python-numpy
;; start one. Therefore we must do it. python-scipy))
(system "Xvfb :1 &") (native-inputs (list python-pytest xorg-server-for-tests))
(setenv "DISPLAY" ":1")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "seaborn")))))))
(propagated-inputs
(list python-pandas python-matplotlib python-numpy python-scipy))
(native-inputs
(list python-pytest xorg-server-for-tests))
(home-page "https://seaborn.pydata.org/") (home-page "https://seaborn.pydata.org/")
(synopsis "Statistical data visualization") (synopsis "Statistical data visualization")
(description (description