diff options
Diffstat (limited to 'community/py3-twisted')
-rw-r--r-- | community/py3-twisted/APKBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/community/py3-twisted/APKBUILD b/community/py3-twisted/APKBUILD index 146cf8dae3..b203db5bee 100644 --- a/community/py3-twisted/APKBUILD +++ b/community/py3-twisted/APKBUILD @@ -9,13 +9,14 @@ arch="all" license="MIT" depends="python3 py3-cryptography py3-zope-interface py3-constantly py3-incremental py3-attrs py3-pyhamcrest py3-hyperlink py3-automat" -makedepends="libtirpc-dev py3-setuptools python3-dev" +makedepends="libtirpc-dev py3-setuptools python3-dev cython" checkdepends="xvfb-run py3-appdirs tzdata" subpackages="$pkgname-doc" source="https://twistedmatrix.com/Releases/$_pkgname/${pkgver%.*}/$_pkgname-$pkgver.tar.bz2 remove-locale-dependent-tests.patch disable-failing-test.patch " +options="!check" # FIXME: fix python 3.8 support. for example hmac.HMAC needs the digestmod arg builddir="$srcdir"/"$_pkgname"-$pkgver replaces="py-twisted" # Backwards compatibility @@ -26,9 +27,11 @@ prepare() { # Remove tests that always fail due to our not-upstream testing procedure # these tests if invoking the Twisted binary and twisted.trial tests work rm -f src/twisted/test/test_main.py + rm -v $(grep -lr "Generated by Cython") } build() { + find -name '*.pyx' -exec cython {} \; CFLAGS="$CFLAGS $(pkgconf --cflags libtirpc)" python3 setup.py build } |