Date: Tuesday, December 13, 2022 @ 23:35:15
  Author: arojas
Revision: 1358990

upgpkg: python-ipywidgets 8.0.3-2: Fix deprecation warnings on import

Modified:
  python-ipywidgets/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-12-13 23:30:44 UTC (rev 1358989)
+++ PKGBUILD    2022-12-13 23:35:15 UTC (rev 1358990)
@@ -3,7 +3,7 @@
 pkgname=python-ipywidgets
 _pipname=ipywidgets
 pkgver=8.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc="IPython HTML widgets for Jupyter"
 arch=('any')
 url="https://github.com/ipython/ipywidgets";
@@ -12,9 +12,16 @@
 makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 optdepends=('jupyterlab-widgets: widgets for Jupyter lab' 
'jupyter-widgetsnbextension: widgets for the legacy notebook')
 checkdepends=('python-pytest' 'python-pytz')
-source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz)
-sha256sums=('2ec50df8538a1d4ddd5d454830d010922ad1015e81ac23efb27c0908bbc1eece')
+source=(https://pypi.io/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$pkgver.tar.gz
+        https://github.com/jupyter-widgets/ipywidgets/commit/56a39f74.patch)
+sha256sums=('2ec50df8538a1d4ddd5d454830d010922ad1015e81ac23efb27c0908bbc1eece'
+            '0cb7a44c8a391a892caf7980aff798c063d0e37ade991472696d41d7ae4a7e6b')
 
+prepare() {
+  cd ipywidgets-$pkgver
+  patch -p3 < ../56a39f74.patch # Fix deprecation warnings
+}
+
 build() {
   cd ipywidgets-$pkgver
   python -m build --wheel --no-isolation

Reply via email to