python-requests-mock: fix template

- needs pbr to build
- remove do_check due to unpackaged dependencies
This commit is contained in:
Alessio Sergi 2018-05-28 19:41:00 +02:00
parent 990f23ff56
commit f8c3259201
3 changed files with 27 additions and 21 deletions

View file

@ -0,0 +1,26 @@
# Template file for 'python-requests-mock'
pkgname=python-requests-mock
version=1.5.0
revision=2
noarch=yes
wrksrc="requests-mock-${version}"
build_style=python-module
pycompile_modules="requests_mock"
hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
depends="python-requests python-six"
short_desc="Python2 module to test mocked responses from requests"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/jamielennox/requests-mock"
distfiles="${PYPI_SITE}/r/requests-mock/requests-mock-${version}.tar.gz"
checksum=a029fe6c5244963ef042c6224ff787049bfc5bab958a1b7e5b632ef0bbb05de4
python3-requests-mock_package() {
noarch=yes
pycompile_modules="requests_mock"
depends="python3-requests python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}

View file

@ -0,0 +1 @@
python-requests-mock

View file

@ -1,21 +0,0 @@
# Template file for 'python3-requests-mock'
pkgname=python3-requests-mock
version=1.5.0
revision=1
noarch=yes
wrksrc="requests-mock-${version}"
build_style=python3-module
pycompile_modules="requests_mock"
hostmakedepends="python3-setuptools"
depends="python3-requests"
checkdepends="python3-Sphinx python3-pytest-mock"
short_desc="Python3 module to test mocked responses from requests"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/jamielennox/requests-mock"
distfiles="${PYPI_SITE}/r/requests-mock/requests-mock-${version}.tar.gz"
checksum=a029fe6c5244963ef042c6224ff787049bfc5bab958a1b7e5b632ef0bbb05de4
do_check() {
python3 setup.py test
}