mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
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
3 changed files with 25 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
python-PyHamcrest
|
20
srcpkgs/python3-PyHamcrest/template
Normal file
20
srcpkgs/python3-PyHamcrest/template
Normal 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
|
||||
}
|
Loading…
Add table
Reference in a new issue