[arch-commits] Commit in python-qtconsole/repos/community-any (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Sun Dec 5 15:44:06 UTC 2021
Date: Sunday, December 5, 2021 @ 15:44:06
Author: archange
Revision: 1065178
archrelease: copy trunk to community-any
Added:
python-qtconsole/repos/community-any/PKGBUILD
(from rev 1065177, python-qtconsole/trunk/PKGBUILD)
Deleted:
python-qtconsole/repos/community-any/PKGBUILD
----------+
PKGBUILD | 91 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 49 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-05 15:43:41 UTC (rev 1065177)
+++ PKGBUILD 2021-12-05 15:44:06 UTC (rev 1065178)
@@ -1,42 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-qtconsole
-pkgver=5.1.1
-pkgrel=1
-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-qtpy')
-makedepends=('python-setuptools')
-#checkdepends=('python-nose' 'python-pytest')
-source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz")
-md5sums=('205b9da79216269b96c8c033c8820053')
-
-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"
-}
Copied: python-qtconsole/repos/community-any/PKGBUILD (from rev 1065177, python-qtconsole/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-05 15:44:06 UTC (rev 1065178)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgname=qtconsole
+pkgname=python-qtconsole
+pkgver=5.2.1
+pkgrel=1
+pkgdesc="Qt-based console for Jupyter with support for rich media output"
+arch=(any)
+url="https://qtconsole.readthedocs.io/"
+license=(BSD)
+depends=(
+ python-ipykernel
+ python-jupyter_core
+ python-jupyter_client
+ python-traitlets
+ python-pygments
+ python-pyqt5
+ python-pyzmq
+ python-qtpy
+ qt5-svg
+)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pytest-qt python-flaky xorg-server-xvfb)
+source=(https://github.com/jupyter/${_pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('90e6eedb84f1e3ddc775599d9f14fe7fb68e55f2b849e9006a5c4706f869f7c4')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ # Tests passes but then xvfb-run segfaults
+ xvfb-run -s '-nolisten local' pytest -x -vv --color=yes qtconsole || echo "Tests segfaulted"
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+ cd examples
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ sed -i "s|^Icon=.*$|Icon=${site_packages}/qtconsole/resources/icon/JupyterConsole.svg|" jupyter-qtconsole.desktop
+ install -Dm644 jupyter-qtconsole.desktop -t "${pkgdir}"/usr/share/applications/
+}
More information about the arch-commits
mailing list