[arch-commits] Commit in python-aws-xray-sdk/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at gemini.archlinux.org
Sat Aug 7 05:29:17 UTC 2021
Date: Saturday, August 7, 2021 @ 05:29:16
Author: yan12125
Revision: 994635
python-aws-xray-sdk: fix check() with python-pg8000 1.21.0-1
Modified:
python-aws-xray-sdk/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++++
1 file changed, 8 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-08-07 01:16:25 UTC (rev 994634)
+++ PKGBUILD 2021-08-07 05:29:16 UTC (rev 994635)
@@ -19,6 +19,14 @@
source=("https://github.com/aws/aws-xray-sdk-python/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('3f94ee35d8e34022939153dcc6d5bd8bce1428ee4811f0ee4713e40dae8b22dd')
+prepare() {
+ cd $_pkgname-$pkgver
+ # The 'database_version' field relies on a private member in pg8000 [1], which is removed in pg8000 1.21 [2]
+ # https://github.com/aws/aws-xray-sdk-python/blob/2.8.0/aws_xray_sdk/ext/pg8000/patch.py#L27
+ # https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
+ sed -i "/sql\['database_version'\]/d" tests/ext/pg8000/test_pg8000.py
+}
+
build() {
cd $_pkgname-$pkgver
python setup.py build
More information about the arch-commits
mailing list