void-packages/srcpkgs/python-numexpr/template

31 lines
859 B
Bash

# Template file for 'python-numexpr'
pkgname=python-numexpr
version=2.6.6
revision=1
wrksrc="numexpr-${version}"
build_style=python-module
pycompile_module="numexpr"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel python-numpy python3-numpy"
depends="python-numpy"
short_desc="Fast numerical expression evaluator for NumPy (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/pydata/numexpr"
license="MIT"
distfiles="${PYPI_SITE}/n/numexpr/numexpr-${version}.tar.gz"
checksum=97c1f7fa409439ae933494014cd41d43de84cfe6c98b7f93392f94d54de1b453
post_install() {
vlicense LICENSE.txt
}
python3-numexpr_package() {
depends="python3-numpy"
pycompile_module="numexpr"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}