New package: python-PyHamcrest-1.9.0
This commit is contained in:
parent
e2a965ea49
commit
c04f91c820
2 changed files with 36 additions and 0 deletions
35
srcpkgs/python-PyHamcrest/template
Normal file
35
srcpkgs/python-PyHamcrest/template
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Template file for 'python-PyHamcrest'
|
||||||
|
pkgname=python-PyHamcrest
|
||||||
|
version=1.9.0
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
wrksrc="PyHamcrest-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
pycompile_module="hamcrest"
|
||||||
|
hostmakedepends="python-setuptools python3-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"
|
||||||
|
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
|
||||||
|
}
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-PyHamcrest_package() {
|
||||||
|
noarch=yes
|
||||||
|
depends="python3-six"
|
||||||
|
pycompile_module="hamcrest"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-PyHamcrest
Symbolic link
1
srcpkgs/python3-PyHamcrest
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-PyHamcrest
|
Loading…
Add table
Add a link
Reference in a new issue