blob: 792f55f0e383806acaa2a56d6410612d57c45972 (
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
|
# Maintainer:
pkgname=python-dbapi-compliance
pkgver=1.15.0
pkgrel=7
pkgdesc='Python DB API 2.0 driver compliance unit test suite'
arch=(any)
url='https://github.com/baztian/dbapi-compliance'
license=('Public domain')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=(https://pypi.io/packages/source/d/dbapi-compliance/dbapi-compliance-$pkgver.zip)
sha512sums=('5d1bb34a7e10ec1288fe6d5bdeed6eef0322496810f68b01dbe22e25d9e429c561f53ccddab04b1c9a2b778d0c246d9f9bda56557a5bb81bad8a627e0a0f621e')
build() {
cd dbapi-compliance-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd dbapi-compliance-$pkgver
# HACK: tests are completely broken and upstream is dead
python -m unittest -v dbapi20.py || true
}
package() {
cd dbapi-compliance-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|