Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/python-faker/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-09 07:27:18 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-09 07:27:18 +0000
commitbfa2db7ade84ab233e71e793a103c2d13dac8ed3 (patch)
tree78570252c3afb50546b5ea4bba87a9c8869bf5fb /community/python-faker/PKGBUILD
parent0e5961e6e0038b2d338c1ecea8db71f1155276ac (diff)
parent43d8fdd33906541c80c7f838a26e0e594a11886a (diff)
Merge branch 'master' into i486
Diffstat (limited to 'community/python-faker/PKGBUILD')
-rw-r--r--community/python-faker/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/python-faker/PKGBUILD b/community/python-faker/PKGBUILD
index 87168ec5..891d7841 100644
--- a/community/python-faker/PKGBUILD
+++ b/community/python-faker/PKGBUILD
@@ -1,15 +1,18 @@
# https://github.com/joke2k/faker/issues/408
# time-tests requiring 64 bit fail on i686 - obviously (year 2100 is not representable with 32 bits)
-source+=('remove-century-tests.patch')
-sha512sums+=('69d6c7685f49d28bc5a4ea952d6f0f6ab03e7c9956e338fc7e26d6a714de569641b82e95bb30de15b4598b6fbf3fb8e0a497fde2e28bd988fafbeb030bb24f91')
-
eval "$(
declare -f prepare | \
sed '
/^{\s*$/a \
- cd "$srcdir"/faker-$pkgver\
- patch -p1 -i "$srcdir/remove-century-tests.patch"\
- cd "$srcdir"
+ sed -i '"'"'/\\.date_\\(time_\\)\\?this_century(.*) >= /d'"'"' "$srcdir/faker-$pkgver/tests/providers/test_date_time.py" \
+ sed -i '"'"' \
+ $! N; \
+ /^\\(.\\+\\)\\n\\1$/ ! { \
+ P; \
+ D; \
+ } \
+ D; \
+ '"'"' "$srcdir/faker-$pkgver/tests/providers/test_date_time.py" \
'
)"