Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
python-aws-xray-sdk: fix check() with python-pg8000 1.21.0-1
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@994635 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
yan12125 committed Aug 7, 2021
1 parent 533ff4f commit 6ca5474
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python-aws-xray-sdk/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aioht
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
Expand Down

0 comments on commit 6ca5474

Please sign in to comment.