[arch-commits] Commit in jupyter-nbconvert/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat Aug 27 09:22:45 UTC 2022


    Date: Saturday, August 27, 2022 @ 09:22:45
  Author: arojas
Revision: 1284597

archrelease: copy trunk to community-staging-any

Added:
  jupyter-nbconvert/repos/community-staging-any/
  jupyter-nbconvert/repos/community-staging-any/PKGBUILD
    (from rev 1284596, jupyter-nbconvert/trunk/PKGBUILD)

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

Copied: jupyter-nbconvert/repos/community-staging-any/PKGBUILD (from rev 1284596, jupyter-nbconvert/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2022-08-27 09:22:45 UTC (rev 1284597)
@@ -0,0 +1,54 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=jupyter-nbconvert
+_name=nbconvert
+pkgver=7.0.0
+pkgrel=1
+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>=2'
+  'python-pygments'
+  'python-traitlets'
+  'python-tinycss2'
+  'python-lxml'
+)
+makedepends=('python-build' 'python-installer' 'python-hatchling')
+checkdepends=('python-pytest' 'python-ipywidgets')
+optdepends=('pandoc: non-html conversion output'
+            'python-pyppeteer: for webPDF conversion support')
+source=("https://github.com/jupyter/nbconvert/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('c5b94e2858ada941006c0018817bac4abb47415ca491dec3e20ebd2735fa17d3')
+
+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
+}



More information about the arch-commits mailing list