[arch-commits] Commit in python-ipywidgets/repos (2 files)

Kyle Keen kkeen at archlinux.org
Tue Oct 11 01:55:36 UTC 2016


    Date: Tuesday, October 11, 2016 @ 01:55:36
  Author: kkeen
Revision: 191905

archrelease: copy trunk to community-any

Added:
  python-ipywidgets/repos/community-any/
  python-ipywidgets/repos/community-any/PKGBUILD
    (from rev 191904, python-ipywidgets/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: python-ipywidgets/repos/community-any/PKGBUILD (from rev 191904, python-ipywidgets/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-11 01:55:36 UTC (rev 191905)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-ipywidgets
+pkgver=4.1.1
+pkgrel=1
+pkgdesc="IPython widgets for the Jupyter Notebook"
+arch=('any')
+url="https://github.com/ipython/ipywidgets"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools' 'npm' 'git')
+
+# ipywidgets 5.2.X may be a joke, based on speed of releases
+# and it seems to be because it doesn't do npm correctly
+
+source=("https://github.com/ipython/ipywidgets/archive/$pkgver.tar.gz")
+md5sums=('099e9b76c52839dc33604aad7a2f1a42')
+
+build() {
+  cd "$srcdir/ipywidgets-$pkgver"
+  # needs node, downloads a lot of stuff
+  python3 setup.py build
+  # as of 5.something it doesn't automatically npm?
+  # npm install seems very broken for tarball builds
+  #cd jupyter-js-widgets
+  #npm install
+  #cd ..
+  #cd widgetsnbextension
+  #npm install
+  #cd ..
+}
+
+package() {
+  cd "$srcdir/ipywidgets-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list