mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python3-dateparser: update to 1.1.8.
This commit is contained in:
parent
2697ea67ed
commit
fe4692c5c8
2 changed files with 7 additions and 15 deletions
|
@ -1,12 +0,0 @@
|
||||||
Source: https://github.com/scrapinghub/dateparser/pull/1067
|
|
||||||
--- a/dateparser/languages/locale.py
|
|
||||||
+++ b/dateparser/languages/locale.py
|
|
||||||
@@ -169,7 +169,7 @@ class Locale:
|
|
||||||
if normalize:
|
|
||||||
value = list(map(normalize_unicode, value))
|
|
||||||
pattern = '|'.join(sorted(value, key=len, reverse=True))
|
|
||||||
- pattern = DIGIT_GROUP_PATTERN.sub(r'?P<n>\d+', pattern)
|
|
||||||
+ pattern = pattern.replace(r'\d+', r'?P<n>\d+')
|
|
||||||
pattern = re.compile(r'^(?:{})$'.format(pattern), re.UNICODE | re.IGNORECASE)
|
|
||||||
relative_dictionary[pattern] = key
|
|
||||||
return relative_dictionary
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3-dateparser'
|
# Template file for 'python3-dateparser'
|
||||||
pkgname=python3-dateparser
|
pkgname=python3-dateparser
|
||||||
version=1.1.1
|
version=1.1.8
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
make_check_args="--ignore tests/test_hijri.py --ignore tests/test_jalali.py
|
make_check_args="--ignore tests/test_hijri.py --ignore tests/test_jalali.py
|
||||||
--ignore tests/test_language_detect.py --ignore tests/test_dateparser_data_integrity.py"
|
--ignore tests/test_language_detect.py --ignore tests/test_dateparser_data_integrity.py"
|
||||||
|
@ -14,7 +14,11 @@ license="BSD-3-Clause"
|
||||||
homepage="https://github.com/scrapinghub/dateparser"
|
homepage="https://github.com/scrapinghub/dateparser"
|
||||||
changelog="https://raw.githubusercontent.com/scrapinghub/dateparser/master/HISTORY.rst"
|
changelog="https://raw.githubusercontent.com/scrapinghub/dateparser/master/HISTORY.rst"
|
||||||
distfiles="${PYPI_SITE}/d/dateparser/dateparser-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/d/dateparser/dateparser-${version}.tar.gz"
|
||||||
checksum=038196b1f12c7397e38aad3d61588833257f6f552baa63a1499e6987fa8d42d9
|
checksum=86b8b7517efcc558f085a142cdb7620f0921543fcabdb538c8a4c4001d8178e3
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
|
make_check=no # multiple tests fail without libc locales
|
||||||
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Add table
Reference in a new issue