blob: 1f5c8f4337cd6c371d7ebe23aa4c9957263f9c8a (
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
40
41
42
43
44
|
# Maintainer: Mikhail felixoid Shiryaev <mr dot felixoid on gmail>
_name=clickhouse-connect
pkgname="python-${_name}"
pkgver=0.8.18
pkgrel=1
pkgdesc='A high performance core database driver for connecting ClickHouse to Python, Pandas, and Superset'
arch=('any')
url='https://github.com/ClickHouse/clickhouse-connect'
makedepends=(python-setuptools python-build python-installer python-wheel cython)
depends=(python-requests python-pytz python-lz4 python-zstandard python-certifi)
checkdepends=(python-pytest-asyncio python-sqlalchemy python-pandas)
license=(Apache-2.0)
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
sha256sums=(
6f98224b9123cb131e514dc429cc1067802074e45f6184fb6c1aa2caaeb27255
)
build() {
cd "$srcdir/$_name-$pkgver"
python -m build \
--wheel \
--no-isolation \
--skip-dependency-check
}
check() {
cd "$srcdir/$_name-$pkgver"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
mv clickhouse_connect $_name-orig
test-env/bin/python -m pytest tests/unit_tests
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer \
--destdir="$pkgdir" \
--compile-bytecode=2 \
dist/*.whl
}
|