Date: Sunday, April 9, 2023 @ 11:21:31
Author: arojas
Revision: 1443186
archrelease: copy trunk to community-x86_64
Added:
python-y-py/repos/
python-y-py/repos/community-x86_64/
python-y-py/repos/community-x86_64/PKGBUILD
(from rev 1443185, python-y-py/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-y-py/repos/community-x86_64/PKGBUILD (from rev 1443185,
python-y-py/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2023-04-09 11:21:31 UTC (rev 1443186)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=y_py
+pkgname=python-y-py
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Python bindings for the Y-CRDT built from yrs'
+arch=(x86_64)
+url='https://github.com/y-crdt/ypy'
+license=(MIT)
+depends=(python)
+makedepends=(python-build python-installer python-maturin)
+checkdepends=(python-pytest)
+source=(https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('46836169f7dc2957df8513cfe4bc2009175b3a473e630af421a8e75ee1c48f98')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_pyname-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest -v
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}