[arch-commits] Commit in (4 files)

Kyle Keen kkeen at archlinux.org
Fri May 10 22:52:15 UTC 2019


    Date: Friday, May 10, 2019 @ 22:52:15
  Author: kkeen
Revision: 465045

python2 support requires an older version

Added:
  python2-ipykernel/
  python2-ipykernel/repos/
  python2-ipykernel/trunk/
  python2-ipykernel/trunk/PKGBUILD

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

Added: python2-ipykernel/trunk/PKGBUILD
===================================================================
--- python2-ipykernel/trunk/PKGBUILD	                        (rev 0)
+++ python2-ipykernel/trunk/PKGBUILD	2019-05-10 22:52:15 UTC (rev 465045)
@@ -0,0 +1,40 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python2-ipykernel
+pkgver=4.10.0
+pkgrel=1
+pkgdesc="The ipython kernel for Jupyter"
+arch=('any')
+url="https://pypi.org/project/ipykernel/"
+license=('BSD')
+depends=('python2-traitlets' 'python2-tornado' 'ipython2' 'python2-jupyter_client')
+makedepends=('python2-setuptools' 'ipython2' 'python2-jupyter_client')
+checkdepends=('python2-pytest' 'python2-mock' 'python2-nose')
+source=("ipykernel-$pkgver.tgz::https://github.com/ipython/ipykernel/archive/$pkgver.tar.gz")
+md5sums=('08e99a7b03b4dffd02af190d4c021524')
+
+# dep cycle with python-jupyter_client
+
+prepare() {
+  cd "$srcdir/ipykernel-$pkgver"
+
+  # https://github.com/ipython/ipykernel/issues/332
+  sed -i "s/executable='python'/executable='python2'/" setup.py
+}
+
+build() {
+  cd "$srcdir/ipykernel-$pkgver"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/ipykernel-$pkgver"
+  python2 -m pytest
+}
+
+package() {
+  cd "$srcdir/ipykernel-$pkgver"
+
+  python2 setup.py install  --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list