Date: Thursday, October 21, 2021 @ 18:47:48 Author: dvzrv Revision: 1032024
upgpkg: jupyter-nbconvert 6.1.0-2: Rebuild to switch python-mistune dependency to python-mistune1. List dependencies more clearly as jupyter introduces dependency cycles. Add python-pyppeteer to makedepends/optdepends for webPDF conversion support. Add python-pytest to checkdepends for tests. Run tests in check() and disable the ones that require downloading chromium. Modified: jupyter-nbconvert/trunk/PKGBUILD ----------+ PKGBUILD | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-10-21 18:47:43 UTC (rev 1032023) +++ PKGBUILD 2021-10-21 18:47:48 UTC (rev 1032024) @@ -3,20 +3,34 @@ pkgname=jupyter-nbconvert _name=nbconvert pkgver=6.1.0 -pkgrel=1 -pkgdesc="A language-agnostic web-based interactive shell/notebook server." +pkgrel=2 +pkgdesc="Jupyter Notebook Conversion" arch=('any') url="https://pypi.python.org/pypi/nbconvert" license=('BSD') -depends=('jupyter' 'jupyter-nbformat' 'python-pygments' 'python-mistune' - 'python-jinja' 'python-entrypoints' 'python-traitlets' - 'python-pandocfilters' 'python-bleach' 'python-testpath' - 'python-defusedxml' 'jupyter-nbclient' 'jupyterlab_pygments') +depends=( + 'jupyter' + 'jupyter-nbclient' + 'jupyter-nbformat' + 'jupyterlab_pygments' + 'python-bleach' + 'python-defusedxml' + 'python-entrypoints' + 'python-jinja' + 'python-pandocfilters' + 'python-mistune1' + 'python-pygments' + 'python-testpath' + 'python-traitlets' +) # really depends on jupyter-client, not jupyter -makedepends=('python-setuptools') -optdepends=('pandoc: non-html conversion output') +makedepends=('python-pyppeteer' 'python-setuptools') +checkdepends=('chromium' 'python-pytest') +optdepends=('pandoc: non-html conversion output' + 'python-pyppeteer: for webPDF conversion support') source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/nbconvert/archive/$pkgver.tar.gz") -md5sums=('5673ebd8e67bfec77755de845572dc4d') +sha512sums=('beb1d66788871b2d8b1576bf4e615053a870e6959c832294872a84c89b0329a28364f2d88625dedf3947b27d68e2915155cd6d1152610aec50c4bd7226698483') +b2sums=('9eceb9ed42d63bb495583139400ba1d6d68979379bec7ba408ba6c7e3954604f637a55f5c9e76573d0031f41269516877bfb745f685128d2c6161dff9d352818') build() { cd nbconvert-$pkgver @@ -23,9 +37,18 @@ python setup.py build } +check() { + cd "${_name}-${pkgver}" + # disable tests that download chromium and (probably) require a graphical session + pytest -vv -k 'TestWebPDFExporter and not (test_export or test_webpdf_without_pyppeteer)' + pytest -vv -k 'TestNbConvertApp and not test_webpdf_with_chromium' + # run all remaining tests + pytest -vv -k 'not TestWebPDFExporter and not TestNbConvertApp' +} + package() { - cd "$srcdir/nbconvert-$pkgver" - python3 setup.py install --root="$pkgdir" --optimize=0 + cd "nbconvert-$pkgver" + python setup.py install --root="$pkgdir" --optimize=0 install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }