mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Contributor: Austin Page <jaustinpage@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-cassandra-driver
|
|
_pkgname="${pkgname/py3-/}"
|
|
pkgver=3.29.2
|
|
pkgrel=0
|
|
pkgdesc="Python driver for Apache Cassandra"
|
|
url="https://github.com/datastax/python-driver"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
makedepends="libev-dev py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
options="!check" # requires cython>=0.20,<0.30
|
|
|
|
build() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
4b206720429a90a81ccc87c55303ee19cbb9da36c1ffa6e3c07e30373c533c2542b11d6658074dbba74f2483ec7817f22d5f9ae0d900de6b4479c1f2db691153 cassandra-driver-3.29.2.tar.gz
|
|
"
|