From 0ba5b50f918efda4c0f5aedb2e461ebf3fcb313f Mon Sep 17 00:00:00 2001 From: icp Date: Sun, 4 Sep 2022 14:31:19 +0530 Subject: [PATCH] python3-tables: update to 3.7.0. --- srcpkgs/python3-tables/template | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-tables/template b/srcpkgs/python3-tables/template index 766b76fd501..b7e9426dd8e 100644 --- a/srcpkgs/python3-tables/template +++ b/srcpkgs/python3-tables/template @@ -1,26 +1,33 @@ # Template file for 'python3-tables' pkgname=python3-tables -version=3.6.1 -revision=3 +version=3.7.0 +revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module +build_helper=numpy # XXX: c-blosc (using internal for now) -hostmakedepends="python3-setuptools python3-numpy python3-Cython" +hostmakedepends="python3-wheel python3-Cython python3-packaging" makedepends="python3-devel hdf5-devel lzo-devel bzip2-devel" -depends="python3-numpy python3-numexpr" +depends="python3-numpy python3-numexpr python3-packaging" +checkdepends=$depends short_desc="Hierarchical datasets for Python3" maintainer="pulux " 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=49a972b8a7c27a8a173aeb05f67acb45fe608b64cd8e9fa667c0962a60b71b49 +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 }