blob: 03f9dbfe81760357bb0061567f78773cf2afa69c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=cassandra-driver
pkgname=python-${_name}
pkgdesc="DataStax Driver for Apache Cassandra."
pkgver=3.29.2
provides=(python-${_name})
pkgrel=1
arch=('any')
license=('Apache-2.0')
depends=('python' 'python-geomet')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-scales' 'python-pytest' 'python-ccm' 'python-pytz' 'python-sure' 'python-pure-sasl' 'python-twisted' 'python-pyopenssl' 'python-service-identity' 'python-idna' 'python-gevent' 'python-eventlet' 'cython' 'python-packaging' 'python-futurist' 'python-asynctest' 'python-kerberos' 'python-gremlin' 'python-cryptography')
optdepends=('python-gremlin: graph' 'python-cryptography: cle')
url="https://github.com/datastax/python-driver"
source=("${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('aa3be5396e05b395c178091656a329daba23b0d4dd69b8d076090157f86e6d13')
build() {
cd "${srcdir}"/"${_name/cassandra/python}"-${pkgver}
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--override-ini="addopts="
)
cd "${srcdir}"/"${_name/cassandra/python}"-${pkgver}
rm -rf test-env
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest "${pytest_options[@]}" test
}
package() {
cd "${srcdir}"/"${_name/cassandra/python}"-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
}
|