[arch-commits] Commit in python-anyio/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 11:48:48 UTC 2021
Date: Wednesday, December 1, 2021 @ 11:48:48
Author: felixonmars
Revision: 1059253
archrelease: copy trunk to community-staging-any
Added:
python-anyio/repos/community-staging-any/
python-anyio/repos/community-staging-any/PKGBUILD
(from rev 1059251, python-anyio/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-anyio/repos/community-staging-any/PKGBUILD (from rev 1059251, python-anyio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 11:48:48 UTC (rev 1059253)
@@ -0,0 +1,42 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-anyio
+# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
+pkgver=3.3.4
+pkgrel=2
+pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations'
+arch=(any)
+url='https://github.com/agronholm/anyio'
+license=(MIT)
+depends=(python python-idna python-sniffio)
+makedepends=(python-setuptools python-setuptools-scm)
+checkdepends=(python-pytest python-trustme python-hypothesis python-uvloop
+ python-curio python-trio python-pytest-mock)
+optdepends=(
+ 'python-curio: curio backend'
+ 'python-trio: trio backend'
+)
+source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
+sha256sums=('cc9d5a0fbd13a36474d1d57c0668b414bd63861f8dcf4c3f1c5b9fa3093dab0e')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd anyio-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd anyio-$pkgver
+ # Install to a temporary root as the test suite requires the entry point for
+ # its pytest plugin
+ pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+ python setup.py install --root="$PWD/tmp_install" --skip-build
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest
+}
+
+package() {
+ cd anyio-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list