Date: Thursday, April 6, 2023 @ 03:30:47
Author: felixonmars
Revision: 1438260
archrelease: copy trunk to community-staging-any
Added:
python-trio/repos/community-staging-any/
python-trio/repos/community-staging-any/PKGBUILD
(from rev 1438259, python-trio/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-trio/repos/community-staging-any/PKGBUILD (from rev 1438259,
python-trio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 03:30:47 UTC (rev 1438260)
@@ -0,0 +1,47 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=python-trio
+pkgver=0.22.0
+pkgrel=3
+pkgdesc='A friendly Python library for async concurrency and I/O'
+arch=(any)
+url=https://github.com/python-trio/trio
+license=(MIT)
+depends=(
+ python
+ python-async_generator
+ python-attrs
+ python-exceptiongroup
+ python-idna
+ python-outcome
+ python-sniffio
+ python-sortedcontainers
+)
+makedepends=(
+ git
+ python-setuptools
+)
+provides=(python-multio-provider)
+_tag=87ea87018da2085180138bd952abcac67961be62
+source=(git+https://github.com/python-trio/trio.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+ cd trio
+ _version=$(git describe --tags | sed 's/^v//')
+ echo "__version__ = '${_version}'" > trio/_version.py
+ echo ${_version}
+}
+
+build() {
+ cd trio
+ python setup.py build
+}
+
+package() {
+ cd trio
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-trio/
+}
+
+# vim: ts=2 sw=2 et: