[arch-commits] Commit in python-nbval/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Wed Aug 4 20:40:53 UTC 2021


    Date: Wednesday, August 4, 2021 @ 20:40:53
  Author: felixonmars
Revision: 993765

archrelease: copy trunk to community-any

Added:
  python-nbval/repos/community-any/
  python-nbval/repos/community-any/PKGBUILD
    (from rev 993764, python-nbval/trunk/PKGBUILD)

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

Copied: python-nbval/repos/community-any/PKGBUILD (from rev 993764, python-nbval/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-08-04 20:40:53 UTC (rev 993765)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-nbval
+pkgver=0.9.6
+pkgrel=1
+pkgdesc="A py.test plugin to validate Jupyter notebooks"
+url="https://github.com/computationalmodelling/nbval"
+license=('BSD')
+arch=('any')
+depends=('python-pytest' 'python-jupyter_client' 'jupyter-nbformat' 'python-ipykernel'
+         'python-coverage')
+makedepends=('python-setuptools')
+checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov' 'python-sympy')
+source=("https://github.com/computationalmodelling/nbval/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ce2122ab490b52537696b2a8e97fd3b604c547af93fccf7d83d82b9180d8bb50b57d002f4e16eb605acabab5b31e961fea97bf2d46bf45b9cd1f8b7fca028df2')
+
+build() {
+  cd nbval-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd nbval-$pkgver
+  python setup.py egg_info
+  # size difference: tests/sample_notebook.ipynb::Cell 9
+  # unknown: "tests/latex-example.ipynb::Cell 1", "tests/test_unit_tests_in_notebooks.py::test_print[/build/python-nbval/src/nbval-0.9.6/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb]"
+  PYTHONPATH="$PWD" doit test || echo "Tests failed"
+}
+
+package() {
+  cd nbval-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list