python3-PyHamcrest: update to 2.0.4.

split from python-PyHamcrest as python2 is no longer supported
This commit is contained in:
Joel Beckmeyer 2022-11-10 11:22:30 -05:00 committed by Michal Vasilek
parent ba011241b3
commit 93d7cb3f9d
3 changed files with 25 additions and 16 deletions

View File

@ -2,31 +2,21 @@
pkgname=python-PyHamcrest
version=1.9.0
revision=6
build_style=python-module
pycompile_module="hamcrest"
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-six"
short_desc="Hamcrest framework for matcher objects (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/hamcrest/PyHamcrest"
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
sed -i "/install_requires=/s|'setuptools',||" setup.py
vsed -i "/install_requires=/s|'setuptools',||" setup.py
}
post_install() {
vlicense LICENSE.txt
}
python3-PyHamcrest_package() {
depends="python3-six"
pycompile_module="hamcrest"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt
}
}

View File

@ -1 +0,0 @@
python-PyHamcrest

View File

@ -0,0 +1,20 @@
# Template file for 'python3-PyHamcrest'
pkgname=python3-PyHamcrest
version=2.0.4
revision=1
build_style=python3-pep517
make_install_target="dist/pyhamcrest-${version}-*-*-*.whl"
hostmakedepends="hatch-vcs"
depends="python3"
checkdepends="python3-pytest python3-numpy"
short_desc="Hamcrest framework for matcher objects (Python3)"
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=b5d9ce6b977696286cf232ce2adf8969b4d0b045975b0936ac9005e84e67e9c1
make_check_pre="env PYTHONPATH=src"
post_install() {
vlicense LICENSE.txt
}