New package: python-httmock-1.2.6.

This commit is contained in:
maxice8 2018-06-21 10:42:16 -03:00
parent 92cd54428f
commit e66d5a0de3
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# Template file for 'python-httmock'
pkgname=python-httmock
version=1.2.6
revision=1
noarch=yes
wrksrc="httmock-${version}"
build_style=python-module
pycompile_module="httmock.py"
hostmakedepends="python3-setuptools python-setuptools"
depends="python-requests"
checkdepends="python3-requests"
short_desc="Mocking library for requests (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/patrys/httmock"
distfiles="https://github.com/patrys/httmock/archive/${version}.tar.gz"
checksum=0a5646eff603c58f3cf2d619f5ec1c760cafe5c6049e28f8b8189ba23da4b31f
do_check() {
python3 setup.py test
}
python3-httmock_package() {
noarch=yes
pycompile_module="httmock.py"
depends="python3-requests"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}

1
srcpkgs/python3-httmock Symbolic link
View File

@ -0,0 +1 @@
python-httmock