Date: Wednesday, April 5, 2023 @ 19:13:54
Author: felixonmars
Revision: 1437938
archrelease: copy trunk to community-staging-any
Added:
jupyter-nbconvert/repos/community-staging-any/
jupyter-nbconvert/repos/community-staging-any/PKGBUILD
(from rev 1437936, jupyter-nbconvert/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: jupyter-nbconvert/repos/community-staging-any/PKGBUILD (from rev
1437936, jupyter-nbconvert/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 19:13:54 UTC (rev 1437938)
@@ -0,0 +1,42 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+
+pkgname=jupyter-nbconvert
+_name=nbconvert
+pkgver=7.2.10
+pkgrel=2
+pkgdesc='Jupyter Notebook Conversion'
+arch=(any)
+url='https://pypi.python.org/pypi/nbconvert'
+license=(BSD)
+depends=(jupyter-nbformat jupyter-nbclient jupyterlab_pygments
+ python-beautifulsoup4 python-bleach python-defusedxml
python-entrypoints python-jinja python-pandocfilters
+ python-mistune python-pygments python-traitlets python-tinycss2
python-lxml)
+makedepends=(python-build python-installer python-hatchling python-pyppeteer)
+checkdepends=(python-pytest python-ipywidgets)
+optdepends=('pandoc: non-html conversion output'
+ 'python-pyppeteer: for webPDF conversion support')
+source=(https://github.com/jupyter/nbconvert/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('0ef50a3f17382ee3043492b8b57e59a06a2dd69c4c5f00a7c4fbbb2af8327ba1')
+
+build() {
+ cd nbconvert-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd nbconvert-$pkgver
+ export PYTHONPATH="$PWD" # Make sure system nbconvert is not used
+ # disable tests that download chromium and (probably) require a graphical
session
+ pytest -v -k 'TestWebPDFExporter and not (test_export or
test_webpdf_without_pyppeteer)' -W ignore::DeprecationWarning
+ pytest -v -k 'TestNbConvertApp and not test_webpdf_with_chromium' -W
ignore::DeprecationWarning
+ # run all remaining tests
+ pytest -v -k 'not TestWebPDFExporter and not TestNbConvertApp' -W
ignore::DeprecationWarning
+}
+
+package() {
+ cd nbconvert-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}