[arch-commits] Commit in python-txaio/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:18:04 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:18:03
Author: felixonmars
Revision: 1057945
archrelease: copy trunk to community-staging-any
Added:
python-txaio/repos/community-staging-any/
python-txaio/repos/community-staging-any/PKGBUILD
(from rev 1057940, python-txaio/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-txaio/repos/community-staging-any/PKGBUILD (from rev 1057940, python-txaio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:18:03 UTC (rev 1057945)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov
+
+pkgname=python-txaio
+pkgver=21.2.1
+pkgrel=2
+pkgdesc='Compatibility API between asyncio/Twisted/Trollius'
+arch=('any')
+url="https://github.com/crossbario/txaio"
+license=('MIT')
+depends=('python-six')
+makedepends=('python-setuptools')
+# python-tests is used here:
+# https://github.com/crossbario/txaio/blob/v20.1.1/test/_asyncio_test_utils.py#L35
+checkdepends=('python-pytest' 'python-mock' 'python-twisted' 'python-tests')
+source=("https://pypi.io/packages/source/t/txaio/txaio-$pkgver.tar.gz")
+sha512sums=('762875b9c10304dab31dd54f7830f56b0cc26dd6e7a98c8faf57891a2810e36f53004833f872f0f51bad61cb62be033cfc228c99fd6aff60cd4dd2ae2f2e5c37')
+
+prepare() {
+ # This tests whether pip can install the sdist, and is completely broken
+ # except in their boutique setup. They won't fix it.
+ # https://github.com/crossbario/txaio/issues/77#issuecomment-246276723
+ rm txaio-$pkgver/test/test_packaging.py
+}
+
+build() {
+ cd "$srcdir"/txaio-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/txaio-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd txaio-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list