[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: gnu: python-seaborn: Update to 0.11.1.
From: |
guix-commits |
Subject: |
03/13: gnu: python-seaborn: Update to 0.11.1. |
Date: |
Fri, 9 Jul 2021 05:59:24 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9bfc4a81870b83dc8bb066d73d0cdd48e74e1aa3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Jul 8 18:56:56 2021 +0200
gnu: python-seaborn: Update to 0.11.1.
* gnu/packages/patches/python-seaborn-kde-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/python-xyz.scm (python-seaborn): Use it, and update to
0.11.1.
---
gnu/local.mk | 1 +
gnu/packages/patches/python-seaborn-kde-test.patch | 36 ++++++++++++++++++++++
gnu/packages/python-xyz.scm | 5 +--
3 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 09a9965..1504490 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1633,6 +1633,7 @@ dist_patch_DATA =
\
%D%/packages/patches/python2-pygobject-2-deprecation.patch \
%D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \
%D%/packages/patches/python-robotframework-source-date-epoch.patch \
+ %D%/packages/patches/python-seaborn-kde-test.patch \
%D%/packages/patches/python2-subprocess32-disable-input-test.patch \
%D%/packages/patches/python-unittest2-python3-compat.patch \
%D%/packages/patches/python-unittest2-remove-argparse.patch \
diff --git a/gnu/packages/patches/python-seaborn-kde-test.patch
b/gnu/packages/patches/python-seaborn-kde-test.patch
new file mode 100644
index 0000000..f300dff
--- /dev/null
+++ b/gnu/packages/patches/python-seaborn-kde-test.patch
@@ -0,0 +1,36 @@
+This patch is an excerpt of this upstream commit:
+
+ commit 0a24478a550132f1882e5be5f5dbc0fc446a8a6c
+ Author: Michael Waskom <mwaskom@users.noreply.github.com>
+ Date: Mon Dec 21 18:44:58 2020 -0500
+
+ Raise minimal supported Python to 3.7 and bump requirements (#2396)
+
+It fixes the failure of 'test_weights'.
+
+--- a/seaborn/tests/test_distributions.py
++++ b/seaborn/tests/test_distributions.py
+@@ -709,21 +708,17 @@ class TestKDEPlotUnivariate:
+ integral = integrate.trapz(ydata, np.log10(xdata))
+ assert integral == pytest.approx(1)
+
+- @pytest.mark.skipif(
+- LooseVersion(scipy.__version__) < "1.2.0",
+- reason="Weights require scipy >= 1.2.0"
+- )
+ def test_weights(self):
+
+ x = [1, 2]
+ weights = [2, 1]
+
+- ax = kdeplot(x=x, weights=weights)
++ ax = kdeplot(x=x, weights=weights, bw_method=.1)
+
+ xdata, ydata = ax.lines[0].get_xydata().T
+
+- y1 = ydata[np.argwhere(np.abs(xdata - 1).min())]
+- y2 = ydata[np.argwhere(np.abs(xdata - 2).min())]
++ y1 = ydata[np.abs(xdata - 1).argmin()]
++ y2 = ydata[np.abs(xdata - 2).argmin()]
+
+ assert y1 == pytest.approx(2 * y2)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7a52285..181729b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8800,13 +8800,14 @@ SVG, EPS, PNG and terminal output.")
(define-public python-seaborn
(package
(name "python-seaborn")
- (version "0.10.0")
+ (version "0.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "seaborn" version))
(sha256
- (base32 "1ffbms4kllihfycf6j57dziq4imgdjw03sqgifh5wzcd2d743zjr"))))
+ (base32 "1b81p9s6li3b606ivgbynrh102fclwlw74m8qxzsii9pv6p8xrs4"))
+ (patches (search-patches "python-seaborn-kde-test.patch"))))
(build-system python-build-system)
(arguments
`(#:phases
- branch master updated (ef3d60f -> b182121), guix-commits, 2021/07/09
- 04/13: gnu: Add python-escapism., guix-commits, 2021/07/09
- 01/13: gnu: python-seaborn: 'check' phase honors #:tests?., guix-commits, 2021/07/09
- 02/13: gnu: python-seaborn: Simplify 'start-xserver' phase., guix-commits, 2021/07/09
- 03/13: gnu: python-seaborn: Update to 0.11.1.,
guix-commits <=
- 06/13: gnu: Add python-pytest-datadir., guix-commits, 2021/07/09
- 09/13: gnu: Add python-sphinxcontrib-autoprogram., guix-commits, 2021/07/09
- 08/13: gnu: Add python-jupyter-sphinx., guix-commits, 2021/07/09
- 10/13: gnu: Add python-pydata-sphinx-theme., guix-commits, 2021/07/09
- 11/13: gnu: Add repo2docker., guix-commits, 2021/07/09
- 05/13: gnu: Add python-recommonmark., guix-commits, 2021/07/09
- 07/13: gnu: Add python-pytest-regressions., guix-commits, 2021/07/09
- 12/13: gnu: python-arrow: Update to 1.1.1., guix-commits, 2021/07/09
- 13/13: gnu: python-arrow: Honor #:tests? in 'check' phase., guix-commits, 2021/07/09