Date: Thursday, April 6, 2023 @ 02:07:35
Author: felixonmars
Revision: 1438042
archrelease: copy trunk to community-staging-any
Added:
python-hatch-jupyter-builder/repos/community-staging-any/
python-hatch-jupyter-builder/repos/community-staging-any/PKGBUILD
(from rev 1438041, python-hatch-jupyter-builder/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-hatch-jupyter-builder/repos/community-staging-any/PKGBUILD (from
rev 1438041, python-hatch-jupyter-builder/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 02:07:35 UTC (rev 1438042)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pipname=hatch_jupyter_builder
+pkgname=python-hatch-jupyter-builder
+pkgver=0.8.2
+pkgrel=2
+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=('6436daace48622cefc8585c5d2988a1046c074b65ab5715de04666535a5edff7')
+
+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
+}