void-packages/srcpkgs/python3-numpy/template

34 lines
994 B
Bash

# Template file for 'python3-numpy'
pkgname=python3-numpy
version=1.19.2
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"
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=5ee0d6d17fe01dde9824811516d94ba8adb9349d81ef78d0696e6b03097498b8
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
}