Date: Thursday, April 6, 2023 @ 13:18:44
Author: felixonmars
Revision: 1438830
archrelease: copy trunk to community-staging-any
Added:
python-aiofiles/repos/community-staging-any/
python-aiofiles/repos/community-staging-any/PKGBUILD
(from rev 1438825, python-aiofiles/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-aiofiles/repos/community-staging-any/PKGBUILD (from rev 1438825,
python-aiofiles/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:18:44 UTC (rev 1438830)
@@ -0,0 +1,49 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: cclin <[email protected]>
+
+pkgname=python-aiofiles
+pkgver=23.1.0
+pkgrel=2
+pkgdesc='File support for asyncio'
+arch=(any)
+license=(APACHE)
+url=https://github.com/Tinche/aiofiles
+depends=(python)
+makedepends=(
+ git
+ python-build
+ python-installer
+ python-poetry-core
+)
+checkdepends=(
+ python-pytest-asyncio
+ python-pytest
+)
+_tag=5cb9b6d3d51e0d9f8170cab06db8ae7f5792d8ff
+source=(git+https://github.com/Tinche/aiofiles.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+ cd aiofiles
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd aiofiles
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ cd aiofiles
+ python -m installer --destdir=test_dir dist/*.whl
+ export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH"
+ pytest -vv
+}
+
+package() {
+ python -m installer --destdir="${pkgdir}" aiofiles/dist/*.whl
+ install -Dm 644 aiofiles/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-aiofiles/
+}
+
+# vim: ts=2 sw=2 et: