python3-PyHamcrest: update to 2.0.4.
split from python-PyHamcrest as python2 is no longer supported
This commit is contained in:
parent
ba011241b3
commit
93d7cb3f9d
|
@ -2,31 +2,21 @@
|
||||||
pkgname=python-PyHamcrest
|
pkgname=python-PyHamcrest
|
||||||
version=1.9.0
|
version=1.9.0
|
||||||
revision=6
|
revision=6
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
pycompile_module="hamcrest"
|
hostmakedepends="python-setuptools"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
|
||||||
depends="python-six"
|
depends="python-six"
|
||||||
short_desc="Hamcrest framework for matcher objects (Python2)"
|
short_desc="Hamcrest framework for matcher objects (Python2)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://github.com/hamcrest/PyHamcrest"
|
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
|
homepage="https://github.com/hamcrest/PyHamcrest"
|
||||||
distfiles="${PYPI_SITE}/P/PyHamcrest/PyHamcrest-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/PyHamcrest/PyHamcrest-${version}.tar.gz"
|
||||||
checksum=8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd
|
checksum=8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# drop setuptools from runtime requires
|
# drop setuptools from runtime requires
|
||||||
sed -i "/install_requires=/s|'setuptools',||" setup.py
|
vsed -i "/install_requires=/s|'setuptools',||" setup.py
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE.txt
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-PyHamcrest
|
|
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue