void-packages/srcpkgs/python3-numpy/template

34 lines
1013 B
Bash

# Template file for 'python3-numpy'
pkgname=python3-numpy
version=1.19.4
revision=1
wrksrc="numpy-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython gcc-fortran"
makedepends="python3-devel lapack-devel cblas-devel"
depends="python3-setuptools"
checkdepends="python3-pytest python3-hypothesis"
short_desc="Fast and sophisticated array facility to Python3"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="BSD-3-Clause"
homepage="https://www.numpy.org/"
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
checksum=6082884371a5998fa8b006b506f4827c0617d789d7b3ee78549bb044139a9a8e
alternatives="numpy:f2py:/usr/bin/f2py3"
do_check() {
./runtests.py -v
}
post_install() {
# create compat symlinks for .h files
vmkdir ${py3_inc}
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py3_inc}
rm -f ${DESTDIR}/usr/bin/f2py
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
vlicense LICENSE.txt LICENSE
}