Date: Thursday, April 6, 2023 @ 12:18:35
Author: felixonmars
Revision: 1438653
archrelease: copy trunk to community-staging-any
Added:
python-aioitertools/repos/community-staging-any/
python-aioitertools/repos/community-staging-any/PKGBUILD
(from rev 1438651, python-aioitertools/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-aioitertools/repos/community-staging-any/PKGBUILD (from rev
1438651, python-aioitertools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 12:18:35 UTC (rev 1438653)
@@ -0,0 +1,31 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-aioitertools
+_pkgname=aioitertools
+# https://github.com/omnilib/aioitertools/blob/main/CHANGELOG.md
+pkgver=0.11.0
+pkgrel=2
+pkgdesc='Implementation of itertools, builtins, and more for AsyncIO and
mixed-type iterables'
+arch=(any)
+url='https://github.com/omnilib/aioitertools'
+license=(MIT)
+depends=(python)
+makedepends=(python-flit-core python-build python-installer)
+source=("https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha256sums=('42c68b8dd3a69c2bf7f2233bf7df4bb58b557bca5252ac02ed5187bbc67d6831')
+
+build() {
+ cd $_pkgname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_pkgname-$pkgver
+ python -m unittest -v aioitertools.tests
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}