[arch-commits] Commit in python-mpmath/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sun Feb 21 17:45:15 UTC 2021


    Date: Sunday, February 21, 2021 @ 17:45:15
  Author: arojas
Revision: 867771

Revert commit that breaks Sage detection

Modified:
  python-mpmath/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-21 17:33:59 UTC (rev 867770)
+++ PKGBUILD	2021-02-21 17:45:15 UTC (rev 867771)
@@ -6,7 +6,7 @@
 
 pkgname=python-mpmath
 pkgver=1.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
 arch=(any)
 url='http://mpmath.org/'
@@ -13,9 +13,15 @@
 license=(BSD)
 depends=(python-gmpy2)
 makedepends=(python-setuptools-scm)
-source=(https://pypi.python.org/packages/source/m/mpmath/mpmath-$pkgver.tar.gz)
-sha256sums=('79ffb45cf9f4b101a807595bcb3e72e0396202e0b1d25d689134b48c4216a81a')
+source=(https://pypi.python.org/packages/source/m/mpmath/mpmath-$pkgver.tar.gz
+        mpmath-sage-detection.patch::"https://github.com/fredrik-johansson/mpmath/commit/84ca137f.patch")
+sha256sums=('79ffb45cf9f4b101a807595bcb3e72e0396202e0b1d25d689134b48c4216a81a'
+            '16b91c3b2197fce6a0e1a431aa3ad6a5854ec4985bdc479f37382d79e35adb35')
 
+prepare() {
+  patch -d mpmath-$pkgver -Rp1 < mpmath-sage-detection.patch # Fix Sage detection
+}
+
 build() {
   cd mpmath-$pkgver
   python setup.py build



More information about the arch-commits mailing list