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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 03:59:24 UTC 2020


    Date: Tuesday, November 10, 2020 @ 03:59:24
  Author: foutrelis
Revision: 748317

archrelease: copy trunk to community-staging-any

Added:
  python-qtconsole/repos/community-staging-any/
  python-qtconsole/repos/community-staging-any/PKGBUILD
    (from rev 748316, python-qtconsole/trunk/PKGBUILD)

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

Copied: python-qtconsole/repos/community-staging-any/PKGBUILD (from rev 748316, python-qtconsole/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 03:59:24 UTC (rev 748317)
@@ -0,0 +1,42 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-qtconsole
+pkgver=4.7.3
+pkgrel=2
+pkgdesc="Qt-based console for Jupyter with support for rich media output"
+arch=('any')
+url="https://pypi.org/project/qtconsole/"
+license=('BSD')
+depends=('python-ipykernel' 'python-jupyter_core' 'python-jupyter_client'
+         'python-traitlets' 'python-pygments' 'python-pyzmq'
+         'qt5-svg' 'python-pyqt5' 'python-sip' 'python-qtpy')
+makedepends=('python-setuptools')
+#checkdepends=('python-nose' 'python-pytest')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz")
+md5sums=('c65c682637b2a8e470df0fd37a5e5c67')
+
+build() {
+  cd "$srcdir/qtconsole-$pkgver"
+  python setup.py build
+}
+
+check() {
+  # tests require an active X session
+  true
+  return
+  cd "$srcdir/qtconsole-$pkgver"
+  nosetests qtconsole
+}
+
+package() {
+  cd "$srcdir/qtconsole-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd examples
+  # FS#47046 FS#57556 FS#64628 fix .desktop icon
+  sed -i 's|^Icon=.*$|Icon=/usr/lib/python3.9/site-packages/qtconsole/resources/icon/JupyterConsole.svg|' \
+    jupyter-qtconsole.desktop
+  install -Dm644 jupyter-qtconsole.desktop \
+    "$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
+}



More information about the arch-commits mailing list