void-packages/srcpkgs/python-kiwisolver/template

31 lines
900 B
Bash
Raw Normal View History

2018-03-29 19:45:01 +02:00
# Template file for 'python-kiwisolver'
pkgname=python-kiwisolver
version=1.0.1
revision=1
wrksrc="kiwisolver-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Fast implementation of the Cassowary constraint solver (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/nucleic/kiwi"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/k/kiwisolver/kiwisolver-${version}.tar.gz"
checksum=ce3be5d520b4d2c3e5eeb4cd2ef62b9b9ab8ac6b6fedbaa0e39cdb6f50644278
pre_build() {
# remove dependency on setuptools; it's not a runtime dependency
sed -i '/install_requires/d' setup.py
}
post_install() {
vlicense COPYING.txt LICENSE
}
python3-kiwisolver_package() {
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense COPYING.txt LICENSE
}
}