[arch-commits] Commit in (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Thu Mar 3 08:09:17 UTC 2022


    Date: Thursday, March 3, 2022 @ 08:09:16
  Author: arojas
Revision: 1140352

Add python-pytest-jupyter

Added:
  python-pytest-jupyter/
  python-pytest-jupyter/trunk/
  python-pytest-jupyter/trunk/PKGBUILD

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

Added: python-pytest-jupyter/trunk/PKGBUILD
===================================================================
--- python-pytest-jupyter/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-jupyter/trunk/PKGBUILD	2022-03-03 08:09:16 UTC (rev 1140352)
@@ -0,0 +1,31 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=python-pytest-jupyter
+pkgver=0.0.3
+pkgrel=1
+pkgdesc='A pytest plugin for testing Jupyter core libraries and extensions'
+arch=(any)
+license=(BSD)
+url='https://github.com/jupyter-server/pytest-jupyter'
+depends=(python-pytest)
+makedepends=(python-build python-installer python-setuptools python-jupyter_packaging)
+source=(https://github.com/jupyter-server/pytest-jupyter/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('67ebebb726cd178c729a10ecac1b457f75feb1e66a1bf3d0b50660daa5830ec0')
+
+prepare() {
+# Remove jupyter_packaging version constraint
+  sed -e 's|~=0.7.5||' -i pytest-jupyter-$pkgver/pyproject.toml
+}
+
+build() {
+  cd pytest-jupyter-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd pytest-jupyter-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list