void-packages/srcpkgs/python3-PyFxA/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

32 lines
1 KiB
Bash

# Template file for 'python3-PyFxA'
pkgname=python3-PyFxA
version=0.7.1
revision=1
archs=noarch
wrksrc="PyFxA-${version}"
build_style=python3-module
pycompile_module="fxa"
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-cryptography python3-six python3-requests
python3-hawkauthlib python3-PyBrowserID"
# Missing package: responses
checkdepends="$depends python3-pyotp"
short_desc="Python3 library for interacting with Firefox Accounts"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://github.com/mozilla/PyFxA"
distfiles="${PYPI_SITE}/P/PyFxA/PyFxA-${version}.tar.gz"
checksum=616689486d8d63956aa40836cffafde6e7590cdeb200badabaaf3c17d5b26cce
do_check() {
# gevent/grequests test is limited to Python 2 by upstream
vsed -i '/mock/d;/unittest2/d;/grequests/d' dev-requirements.txt
# use Python 3's mock
vsed -i 's/import mock/import unittest.mock as mock/' fxa/tests/mock_utilities.py
# requires network access
rm -f fxa/tests/test_core.py
python3 setup.py test
}