Date: Wednesday, April 5, 2023 @ 20:04:28
Author: felixonmars
Revision: 472681
archrelease: copy trunk to staging-any
Added:
python-twisted/repos/staging-any/
python-twisted/repos/staging-any/PKGBUILD
(from rev 472680, python-twisted/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-twisted/repos/staging-any/PKGBUILD (from rev 472680,
python-twisted/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2023-04-05 20:04:28 UTC (rev 472681)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+# Contributor: Juergen Hoetzel <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+
+pkgname=python-twisted
+pkgver=22.10.0
+pkgrel=2
+pkgdesc="Asynchronous networking framework written in Python"
+arch=('any')
+url="https://twistedmatrix.com/"
+license=('MIT')
+depends=('python-zope-interface' 'python-constantly' 'python-incremental'
'python-automat'
+ 'python-hyperlink' 'python-attrs' 'python-typing_extensions')
+makedepends=('python-setuptools')
+optdepends=('python-pyopenssl: for TLS client hostname verification'
+ 'python-service-identity: for TLS client hostname verification'
+ 'python-idna: for TLS client hostname verification'
+ 'python-cryptography: for using conch'
+ 'python-pyasn1: for using conch'
+ 'python-appdirs: for using conch'
+ 'python-bcrypt: for using conch'
+ 'python-h2: for http2 support'
+ 'python-priority: for http2 support'
+ 'python-pyserial: for serial support'
+ 'tk: for using tkconch')
+checkdepends=('python-pyhamcrest' 'subversion' 'xorg-server-xvfb' 'tk'
'openssh' 'git' 'gtk3'
+ 'python-gobject' 'python-subunit' 'python-h2' 'python-priority'
'python-cryptography'
+ 'python-idna' 'python-pyasn1' 'python-pyserial' 'python-bcrypt'
'python-hypothesis'
+ 'python-cython-test-exception-raiser' 'python-pyopenssl'
'python-service-identity')
+# Conflicts with the command line tools used to be provided by the python2
package.
+conflicts=("python2-twisted<=20.3.0-3")
+source=("https://github.com/twisted/twisted/archive/twisted-$pkgver.tar.gz")
+sha512sums=('cf9ed96430376d499ae9627a7d0656c05cb99bc9e9b15a8f4166355363818f090bc3c2b383ed4cf19e1e38fb569e8618d35a0ddde2a90a06f3c9a4ea769837e4')
+
+build() {
+ cd twisted-twisted-$pkgver
+ python setup.py build
+}
+
+check() {
+ export LC_CTYPE=en_US.UTF-8
+
+ # tests use the underlying function from the 'python -m twisted.trial'
module, to prevent loading system entry points
+ PYTHONPATH="$srcdir/twisted-twisted-$pkgver/build/lib" xvfb-run python -c
'from twisted.scripts.trial import run; run()' twisted || echo "Tests failed"
+}
+
+package() {
+ cd twisted-twisted-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}