Date: Monday, April 10, 2023 @ 17:41:01
  Author: arojas
Revision: 1444516

archrelease: copy trunk to community-staging-any

Added:
  python-ypy-websocket/repos/community-staging-any/
  python-ypy-websocket/repos/community-staging-any/PKGBUILD
    (from rev 1444515, python-ypy-websocket/trunk/PKGBUILD)

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

Copied: python-ypy-websocket/repos/community-staging-any/PKGBUILD (from rev 
1444515, python-ypy-websocket/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-10 17:41:01 UTC (rev 1444516)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=ypy_websocket
+pkgname=python-ypy-websocket
+pkgver=0.8.2
+pkgrel=2
+pkgdesc='WebSocket connector for Ypy'
+arch=(any)
+url='https://github.com/y-crdt/ypy-websocket'
+license=(MIT)
+depends=(python-y-py python-aiofiles python-aiosqlite)
+makedepends=(python-build python-installer python-hatchling)
+checkdepends=(python-pytest-asyncio python-websockets nodejs)
+source=(https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('491b2cc4271df4dde9be83017c15f4532b597dc43148472eb20c5aeb838a5b46')
+
+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 -k 'not test_ypy_yjs' # Fails on build.a.o
+}
+
+package() {
+  cd $_pyname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to