diff options
author | Zach van Rijn <me@zv.io> | 2022-04-22 07:54:28 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:33:58 -0500 |
commit | 65784660913414eeb512dc7eadc36016ab091570 (patch) | |
tree | 32386cc534d9f4668cc92e7f37574769a5332e12 /user/py3-random2/APKBUILD | |
parent | d0974da0993c778431154f4445e526f327028933 (diff) | |
download | packages-65784660913414eeb512dc7eadc36016ab091570.tar.gz packages-65784660913414eeb512dc7eadc36016ab091570.tar.bz2 packages-65784660913414eeb512dc7eadc36016ab091570.tar.xz packages-65784660913414eeb512dc7eadc36016ab091570.zip |
user/py3-random2: remove broken test. fixes #556.
Diffstat (limited to 'user/py3-random2/APKBUILD')
-rw-r--r-- | user/py3-random2/APKBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/user/py3-random2/APKBUILD b/user/py3-random2/APKBUILD index da7838e39..776c0889d 100644 --- a/user/py3-random2/APKBUILD +++ b/user/py3-random2/APKBUILD @@ -5,9 +5,9 @@ _pkgname=random2 _p="${_pkgname#?}" _p="${_pkgname%"$_p"}" pkgver=1.0.1 -pkgrel=0 +pkgrel=1 pkgdesc="A Python module implementing Python 2's RNG" -url="https://pypi.python.org/pypi/random2" +url="https://pypi.org/project/random2/" arch="noarch" license="Python-2.0" depends="python3" @@ -15,6 +15,15 @@ makedepends="python3-dev" source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.zip" builddir="$srcdir/$_pkgname-$pkgver" +prepare() { + default_prepare + + # Remove a test that is invalid as of python 3.9 + # Taken from Fedora .spec + # https://src.fedoraproject.org/rpms/python-random2/blob/rawhide/f/python-random2.spec + sed -i '/self\.gen\.getrandbits, 0/d' src/tests.py +} + build() { python3 setup.py build } |