void-packages/srcpkgs/python3-apsw/template

31 lines
896 B
Bash

# Template file for 'python3-apsw'
pkgname=python3-apsw
version=3.36.0r1
revision=3
wrksrc="apsw-${version/r/-r}"
build_style=python3-module
make_build_args="--enable=load_extension"
hostmakedepends="python3-devel"
makedepends="python3-devel sqlite-devel"
depends="python3"
checkdepends="python3-pytest $makedepends"
short_desc="Another Python SQLite Wrapper (Python3)"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="Zlib"
homepage="https://github.com/rogerbinns/apsw"
changelog="https://raw.githubusercontent.com/rogerbinns/apsw/master/doc/changes.rst"
distfiles="${homepage}/archive/${version/r/-r}.tar.gz"
checksum=133ee2291851e0144661eba25517c7feb026c6d5896df90ef7ea0feddf03a842
pre_check() {
$CC $CFLAGS -fPIC -shared -o ./testextension.sqlext src/testextension.c
}
do_check() {
PYTHONPATH="$(cd build/lib* && pwd)" python3 ./tests.py
}
post_install() {
vlicense LICENSE
}