Date: Monday, May 15, 2023 @ 20:41:44
Author: arojas
Revision: 1461877
archrelease: copy trunk to community-any
Added:
python-async-lru/repos/
python-async-lru/repos/community-any/
python-async-lru/repos/community-any/PKGBUILD
(from rev 1461876, python-async-lru/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-async-lru/repos/community-any/PKGBUILD (from rev 1461876,
python-async-lru/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2023-05-15 20:41:44 UTC (rev 1461877)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+_pyname=async-lru
+pkgname=python-$_pyname
+pkgver=2.0.2
+pkgrel=1
+pkgdesc='Simple LRU cache for asyncio'
+arch=(any)
+url='https://github.com/aio-libs/async-lru'
+license=(MIT)
+depends=(python-typing_extensions)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest-cov python-pytest-asyncio python-pytest-timeout)
+source=(https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('3b87ec4f2460c52cc7916a0138cc606b584c75d1ef7d661853c95d1d3acb869a')
+
+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
+}