vp-build/srcpkgs/python-PyHamcrest/template

23 lines
654 B
Bash

# Template file for 'python-PyHamcrest'
pkgname=python-PyHamcrest
version=1.9.0
revision=6
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-six"
short_desc="Hamcrest framework for matcher objects (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/hamcrest/PyHamcrest"
distfiles="${PYPI_SITE}/P/PyHamcrest/PyHamcrest-${version}.tar.gz"
checksum=8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd
pre_build() {
# drop setuptools from runtime requires
vsed -i "/install_requires=/s|'setuptools',||" setup.py
}
post_install() {
vlicense LICENSE.txt
}