[arch-commits] Commit in (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Apr 3 21:29:16 UTC 2022
Date: Sunday, April 3, 2022 @ 21:29:15
Author: arojas
Revision: 1181115
New sagemath dependency
Added:
python-jupyter-sphinx/
python-jupyter-sphinx/trunk/
python-jupyter-sphinx/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: python-jupyter-sphinx/trunk/PKGBUILD
===================================================================
--- python-jupyter-sphinx/trunk/PKGBUILD (rev 0)
+++ python-jupyter-sphinx/trunk/PKGBUILD 2022-04-03 21:29:15 UTC (rev 1181115)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+_pipname=jupyter-sphinx
+pkgname=python-$_pipname
+pkgver=0.3.2
+pkgrel=1
+pkgdesc='Jupyter Sphinx Extensions'
+arch=(any)
+url='https://github.com/jupyter/jupyter-sphinx/'
+license=(BSD)
+depends=(python-sphinx python-ipywidgets)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest jupyter-nbformat)
+#source=(https://pypi.io/packages/source/j/$_pipname/$_pipname-$pkgver.tar.gz) - doesn't include tests
+source=(https://github.com/jupyter/jupyter-sphinx/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('3b8dfc9364ec4f88b779411736adfd649989b432d6ba2b3761e85771d03c68eb')
+
+build() {
+ cd $_pipname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_pipname-$pkgver
+ PYTHONPATH="$PWD"/build/lib \
+ pytest -v
+}
+
+package() {
+ cd $_pipname-$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