python-requests-mock: fix template
- needs pbr to build - remove do_check due to unpackaged dependencies
This commit is contained in:
parent
990f23ff56
commit
f8c3259201
3 changed files with 27 additions and 21 deletions
26
srcpkgs/python-requests-mock/template
Normal file
26
srcpkgs/python-requests-mock/template
Normal 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*
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-requests-mock
Symbolic link
1
srcpkgs/python3-requests-mock
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-requests-mock
|
|
@ -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
|
|
||||||
}
|
|
Loading…
Reference in a new issue