Date: Monday, November 21, 2022 @ 21:13:45
Author: arojas
Revision: 1351411
archrelease: copy trunk to community-any
Added:
python-comm/repos/
python-comm/repos/community-any/
python-comm/repos/community-any/PKGBUILD
(from rev 1351410, python-comm/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-comm/repos/community-any/PKGBUILD (from rev 1351410,
python-comm/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2022-11-21 21:13:45 UTC (rev 1351411)
@@ -0,0 +1,31 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=comm
+pkgname=python-$_pyname
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Python Comm implementation for the Jupyter kernel protocol'
+arch=(any)
+url='https://pypi.org/project/comm/'
+license=(BSD)
+depends=(python-traitlets)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/ipython/$_pyname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('911f08417bc99b807c3caed5810e34d1ebf1a981c8d240cf59356452633d2c86')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+#check() {
+# cd $_pyname-$pkgver
+# pytest -v
+#}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}