Date: Sunday, April 9, 2023 @ 11:28:37 Author: arojas Revision: 1443187
New jupyterlab dependency Added: python-ypy-websocket/ python-ypy-websocket/trunk/ python-ypy-websocket/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-ypy-websocket/trunk/PKGBUILD =================================================================== --- python-ypy-websocket/trunk/PKGBUILD (rev 0) +++ python-ypy-websocket/trunk/PKGBUILD 2023-04-09 11:28:37 UTC (rev 1443187) @@ -0,0 +1,33 @@ +# Maintainer: Antonio Rojas <[email protected]> + +_pyname=ypy_websocket +pkgname=python-ypy-websocket +pkgver=0.9.0 +pkgrel=1 +pkgdesc='WebSocket connector for Ypy' +arch=(any) +url='https://github.com/y-crdt/ypy-websocket' +license=(MIT) +depends=(python-y-py python-anyio 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=('dd12ae046ea7ddf2c58f028b74cacb9c493dd07229c5efda775dcdc2c26096a5') + +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 +}
