diff --git a/srcpkgs/python3-gmpy2/patches/test-optional-mpmath.patch b/srcpkgs/python3-gmpy2/patches/test-optional-mpmath.patch deleted file mode 100644 index 4ad8b347c11..00000000000 --- a/srcpkgs/python3-gmpy2/patches/test-optional-mpmath.patch +++ /dev/null @@ -1,22 +0,0 @@ -Skip mpmath test if module not available - -diff --git a/test/test_mpfr.py b/test/test_mpfr.py -index 03f0a44..e9deb79 100644 ---- a/test/test_mpfr.py -+++ b/test/test_mpfr.py -@@ -3,7 +3,6 @@ from decimal import Decimal - import pytest - from hypothesis import given, example, settings - from hypothesis.strategies import floats --import mpmath - - import gmpy2 - from gmpy2 import (gamma_inc, mpfr, cmp, cmp_abs, zero, nan, mpz, mpq, -@@ -123,6 +122,7 @@ def test_mpfr_nrandom(): - - - def test_mpfr_mpmath(): -+ mpmath = pytest.importorskip("mpmath") - a, b, c, d = '1.1', '-1.1', '-3.14', '0' - assert mpfr(a)._mpf_ == (0, mpz(4953959590107546), -52, 53) - assert mpmath.mpf(mpfr(a)) == mpmath.mpf(a) diff --git a/srcpkgs/python3-gmpy2/template b/srcpkgs/python3-gmpy2/template index bd9adf30523..307eed41980 100644 --- a/srcpkgs/python3-gmpy2/template +++ b/srcpkgs/python3-gmpy2/template @@ -1,6 +1,7 @@ # Template file for 'python3-gmpy2' pkgname=python3-gmpy2 -version=2.2.0a1 +# need $version > 2.2.0a1 which we shipped before by necessity +version=2.2.0r revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools python3-wheel" @@ -12,14 +13,10 @@ maintainer="Gonzalo TornarĂ­a " license="LGPL-3.0-or-later" homepage="https://github.com/aleaxit/gmpy" changelog="https://github.com/aleaxit/gmpy/releases" -distfiles="${PYPI_SITE}/g/gmpy2/gmpy2-${version}.tar.gz" -checksum=3b8acc939a40411a8ad5541ed178ff866dd1759e667ee26fe34c9291b6b350c3 +distfiles="${PYPI_SITE}/g/gmpy2/gmpy2-${version%r}.tar.gz" +checksum=e19e62dfeb1e4a57079f0bf51c51dec30633d9fe9e89cb9a083e05e4823afa70 if [ "$XBPS_CHECK_PKGS" = full ]; then # this would cause a build-time circular dependency checkdepends+=" python3-mpmath" fi - -do_check() { - ( cd test && PYTHONPATH="$(cd ../build/lib* && pwd)" python3 runtests.py ) -}