Date: Thursday, April 6, 2023 @ 12:11:26
Author: felixonmars
Revision: 1438636
archrelease: copy trunk to community-staging-any
Added:
python-aiosignal/repos/community-staging-any/
python-aiosignal/repos/community-staging-any/PKGBUILD
(from rev 1438634, python-aiosignal/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-aiosignal/repos/community-staging-any/PKGBUILD (from rev
1438634, python-aiosignal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 12:11:26 UTC (rev 1438636)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pyname=aiosignal
+pkgname=python-${_pyname}
+pkgver=1.3.1
+pkgrel=2
+pkgdesc='List of registered asynchronous callbacks'
+url='https://github.com/aio-libs/aiosignal'
+arch=('any')
+license=('Apache')
+depends=('python' 'python-frozenlist')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-runner'
'python-pytest-asyncio')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('c03454d1b855bb3e84d3ce07fb32d08855b42d1ca7723fd67d3b2ef1bc66038a31974fabda7561c90e2beaf4cdd2c28cc0463e43eb5d5c127df0cd187ae3c2e2')
+b2sums=('16112f674f20b97406eff16a6a9baca1ef414132ec53a67789e08347f06a462ff653c7a00d6865855f5fe0fd70ba4a2bebe286020fdf1942da41d43f72e67837')
+
+build() {
+ cd "${_pyname}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${_pyname}-${pkgver}"
+ PYTHONPATH="$PWD" \
+ pytest -v
+}
+
+package() {
+ cd "${_pyname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES.rst README.rst -t
"${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: