a92d370caa
Generated with: git ls-files 'srcpkgs/**/patches/*' | cut -d/ -f2 | uniq | xargs printf 'srcpkgs/%s/template\n' | xargs grep -L 'patch_args=' | xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
28 lines
899 B
Bash
28 lines
899 B
Bash
# Template file for 'python3-PyBrowserID'
|
|
pkgname=python3-PyBrowserID
|
|
version=0.14.0
|
|
revision=4
|
|
wrksrc="PyBrowserID-${version}"
|
|
build_style=python3-module
|
|
pycompile_module="browserid"
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-requests"
|
|
checkdepends="python3-requests python3-M2Crypto"
|
|
short_desc="Python3 library for the BrowserID Protocol"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MPL-2.0"
|
|
homepage="https://github.com/mozilla/PyBrowserID"
|
|
distfiles="${PYPI_SITE}/P/PyBrowserID/PyBrowserID-${version}.tar.gz"
|
|
checksum=6c227669e87cc25796ae76f6a0ef65025528c8ad82d352679fa9a3e5663a71e3
|
|
patch_args=-Np0
|
|
|
|
do_check() {
|
|
# needs network access (persona.org has been shut down anyway)
|
|
rm -f browserid/tests/test_verifiers.py
|
|
|
|
# use Python 3's mock
|
|
sed -i 's/mock//' setup.py
|
|
sed -i 's/from mock/from unittest.mock/' browserid/tests/test_supportdoc.py
|
|
|
|
python3 setup.py test
|
|
}
|