void-packages/srcpkgs/python3-tables/template

33 lines
957 B
Bash

# Template file for 'python3-tables'
pkgname=python3-tables
version=3.7.0
revision=2
build_style=python3-module
build_helper=numpy
# XXX: c-blosc (using internal for now)
hostmakedepends="python3-wheel python3-Cython python3-packaging"
makedepends="python3-devel hdf5-devel lzo-devel bzip2-devel"
depends="python3-numpy python3-numexpr python3-packaging"
checkdepends=$depends
short_desc="Hierarchical datasets for Python3"
maintainer="pulux <pulux@pf4sh.de>"
license="BSD-3-Clause"
homepage="http://www.pytables.org/"
changelog="http://www.pytables.org/release_notes.html"
distfiles="${PYPI_SITE}/t/tables/tables-${version}.tar.gz"
checksum=e92a887ad6f2a983e564a69902de4a7645c30069fc01abd353ec5da255c5e1fe
post_extract() {
# Make sure Cython is run during build
rm tables/*.c
}
do_check() {
python3 setup.py build_ext --inplace
PYTHONPATH="$(cd build/lib* && pwd)" python3 -m tables.tests.test_all
}
post_install() {
vlicense LICENSE.txt LICENSE
}