1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Maintainer: Bruno Pagani <archange@archlinux.org>
5 pkgname=python-qtconsole
8 pkgdesc="Qt-based console for Jupyter with support for rich media output"
10 url="https://qtconsole.readthedocs.io/"
14 python-ipython-genutils
24 makedepends=(python-setuptools)
25 checkdepends=(python-pytest python-pytest-qt python-flaky xorg-server-xvfb)
26 source=(https://github.com/jupyter/${_pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
27 sha256sums=('991f8c6e30f83018df4e75c2f63dea6ee90b345b1c9461c79f422e96f389e551')
30 cd ${_pkgname}-${pkgver}
35 cd ${_pkgname}-${pkgver}
36 xvfb-run -s '-nolisten local' pytest -x -vv --color=yes qtconsole
40 cd ${_pkgname}-${pkgver}
41 python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
43 install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
46 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
47 sed -i "s|^Icon=.*$|Icon=${site_packages}/qtconsole/resources/icon/JupyterConsole.svg|" jupyter-qtconsole.desktop
48 install -Dm644 jupyter-qtconsole.desktop -t "${pkgdir}"/usr/share/applications/