diff --git a/srcpkgs/python-kiwisolver/template b/srcpkgs/python-kiwisolver/template new file mode 100644 index 00000000000..f1d97feba55 --- /dev/null +++ b/srcpkgs/python-kiwisolver/template @@ -0,0 +1,30 @@ +# 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 " +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 + } +} diff --git a/srcpkgs/python3-kiwisolver b/srcpkgs/python3-kiwisolver new file mode 120000 index 00000000000..6bb16d6a5b7 --- /dev/null +++ b/srcpkgs/python3-kiwisolver @@ -0,0 +1 @@ +python-kiwisolver \ No newline at end of file