void-packages/srcpkgs/python3-PyBrowserID/template

27 lines
851 B
Bash

# Template file for 'python3-PyBrowserID'
pkgname=python3-PyBrowserID
version=0.14.0
revision=7
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
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
}