3
3
4
4
pkgname=python-aws-xray-sdk
5
5
_pkgname=aws-xray-sdk-python
6
- pkgver=2.9 .0
6
+ pkgver=2.10 .0
7
7
pkgrel=1
8
8
pkgdesc=' AWS X-Ray SDK for Python'
9
9
arch=(any)
10
10
url=' https://github.com/aws/aws-xray-sdk-python'
11
11
license=(Apache)
12
- makedepends=(python-setuptools)
13
- depends=(python python-botocore python-future python-wrapt)
14
- checkdepends=(python-flask-sqlalchemy python-pynamodb python-pytest python-aiohttp
15
- python-pytest-aiohttp python-testing.postgresql python-psycopg2
16
- python-pg8000 python-requests python-aiobotocore python-bottle
17
- python-webtest python-django-fake-model python-mock python-sqlalchemy
18
- python-pytest-benchmark)
12
+ # Not including python-future as it's needed only on Python 2
13
+ # https://github.com/aws/aws-xray-sdk-python/pull/343
14
+ depends=(python python-botocore python-wrapt)
15
+ # See extensions in https://github.com/aws/aws-xray-sdk-python/tree/master/aws_xray_sdk/ext
16
+ optdepends=(python-aiobotocore python-aiohttp python-bottle python-django
17
+ python-flask python-flask-sqlalchemy python-mysql-connector
18
+ python-pg8000 python-psycopg2 python-pymongo python-pymysql
19
+ python-pynamodb python-requests python-sqlalchemy)
20
+ makedepends=(python-setuptools ${optdepends[@]} )
21
+ checkdepends=(python-pytest python-pytest-aiohttp python-testing.postgresql
22
+ python-webtest python-django-fake-model python-mock python-pytest-benchmark)
19
23
# Not using PyPI source tarball as it does not include tests
20
24
source=(" https://github.com/aws/aws-xray-sdk-python/archive/$pkgver /$pkgname -$pkgver .tar.gz"
21
25
" python310.diff" )
22
- sha256sums=(' 03de6e87e46394ea02a9dc605a4038462f41eca9e2e4d39eca6b0cfaa50fa280 '
26
+ sha256sums=(' ac44b578718a6d975e980354194e1a4e300f9713bf60b74dbe1ce62efe6dd1ed '
23
27
' 11784ed0d9b9f89bf1cc43a6d97d8488672b74e3419e121be1a50f09e409ad71' )
24
28
25
29
prepare () {
@@ -29,11 +33,10 @@ prepare() {
29
33
# https://github.com/tlocke/pg8000/commit/fa382a2da52c004fa9b98b242e855132d3fd6d23#diff-2d43fca8e06901904747dfab40d9a7a698ff03fab4c9ba1c01a8ce04105d537eL799
30
34
sed -i " /sql\['database_version'\]/d" tests/ext/pg8000/test_pg8000.py
31
35
32
- # top-level `get_session` is removed by default since aiobotocore 2.0.0
33
- # https://github.com/aio-libs/aiobotocore/releases/tag/2.0.0
34
- sed -i -e " s/import aiobotocore$/import aiobotocore.session/g" \
35
- -e " s/aiobotocore\.get_session/aiobotocore.session.get_session/g" tests/ext/aiobotocore/test_aiobotocore.py
36
+ # Django 4.x compatibility; see https://docs.djangoproject.com/en/3.2/ref/urls/#url
37
+ sed -i ' s#from django.conf.urls import url#from django.urls import re_path as url#' tests/ext/django/app/views.py
36
38
39
+ # https://github.com/aws/aws-xray-sdk-python/issues/321
37
40
patch -Np1 -i ../python310.diff
38
41
}
39
42
0 commit comments