void-packages/srcpkgs/python3-PyBrowserID/template
Lugubris d78cb0d201 Drop maintainership of orphaned packages
some packages were dropped but their maintainer= was not updated in template.
this will help new maintainers adopt these packages.

-> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
2019-08-25 21:16:43 +02:00

29 lines
896 B
Bash

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