47 lines
2.2 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=python-sentry_sdk
_pkgname=sentry-python
pkgver=2.19.0
pkgrel=2
pkgdesc="The official Python SDK for Sentry.io"
arch=(any)
url="https://sentry.io/for/python"
license=('MIT')
depends=('python-urllib3' 'python-certifi')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=('python-aiohttp: adds support for the AIOHTTP-Server Web Framework'
'python-bottle: adds support for the Bottle Web Framework'
'python-celery: adds support for the Celery Task Queue System'
'python-django: adds support for the Django Web Framework'
'python-falcon: adds support for the Falcon Web Framework'
'python-fastapi: adds support for the FastAPI framework'
'python-flask: adds support for the Flask Web Framework'
'python-grpcio: gRPC integration'
'python-httpx: HTTPX integration'
'python-loguru: Loguru Integration'
'python-multipart: Optional dependency of Starlette to parse form data'
'python-pymongo: PyMongo integration'
'python-quart: adds support for the Quart Web Framework'
'python-redis: adds support for the RQ Job Queue System'
'python-sqlalchemy: captures queries from SQLAlchemy as breadcrumbs'
'python-starlette: adds support for the Starlette Framework'
'python-tornado: adds support for the Tornado Web Framework'
'python-pure-eval: for richer stacktraces & additional variables'
'python-executing: for richer stacktraces & better function names')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/getsentry/sentry-python/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('589e88f03a4d3af19b96167b745a7984b1b851aa57906c41e6640bcf1fe2cb11')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}