Date: Wednesday, December 7, 2022 @ 07:20:42
Author: arojas
Revision: 1356953
archrelease: copy trunk to community-any
Added:
python-hatch-jupyter-builder/repos/
python-hatch-jupyter-builder/repos/community-any/
python-hatch-jupyter-builder/repos/community-any/PKGBUILD
(from rev 1356952, python-hatch-jupyter-builder/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-hatch-jupyter-builder/repos/community-any/PKGBUILD (from rev
1356952, python-hatch-jupyter-builder/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2022-12-07 07:20:42 UTC (rev 1356953)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pipname=hatch_jupyter_builder
+pkgname=python-hatch-jupyter-builder
+pkgver=0.8.1
+pkgrel=1
+pkgdesc='A hatch plugin to help build Jupyter packages'
+arch=(any)
+url='https://jupyter.org/'
+license=(custom)
+depends=(python-hatchling)
+makedepends=(python-build python-installer)
+checkdepends=(python-pytest python-pytest-mock)
+source=(https://github.com/jupyterlab/hatch-jupyter-builder/releases/download/v$pkgver/${_pipname//-/_}-$pkgver.tar.gz)
+sha256sums=('bae5eda6bacb700fd5120e95a5702f32615a7ce06ed8893b8700568d48baf46f')
+
+build() {
+ cd $_pipname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_pipname-$pkgver
+ pytest -v
+}
+
+package() {
+ cd $_pipname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}