* par is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
27 lines
883 B
Bash
27 lines
883 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
|
|
|
|
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
|
|
}
|