mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
tldextract: fix 'unable to cache TLDs in file'
This commit is contained in:
parent
a796ca9bfb
commit
aae7528cd5
2 changed files with 20 additions and 5 deletions
|
|
@ -0,0 +1,12 @@
|
|||
diff -ur a/tldextract/tldextract.py b/tldextract/tldextract.py
|
||||
--- a/tldextract/tldextract.py 2019-03-05 20:09:22.000000000 +0300
|
||||
+++ b/tldextract/tldextract.py 2019-07-21 18:31:25.553036135 +0300
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
LOG = logging.getLogger("tldextract")
|
||||
|
||||
-CACHE_FILE_DEFAULT = os.path.join(os.path.dirname(__file__), '.tld_set')
|
||||
+CACHE_FILE_DEFAULT = os.path.join('/tmp/.tld_set')
|
||||
CACHE_FILE = os.path.expanduser(os.environ.get("TLDEXTRACT_CACHE", CACHE_FILE_DEFAULT))
|
||||
CACHE_TIMEOUT = os.environ.get('TLDEXTRACT_CACHE_TIMEOUT')
|
||||
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{5,6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Accurately separate the TLD from the registered domain and subdomains"
|
||||
|
|
@ -14,8 +15,10 @@ LICENSE="BSD"
|
|||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/idna[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-file-1.4[${PYTHON_USEDEP}]"
|
||||
DEPEND="${REDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/requests-file[${PYTHON_USEDEP}]"
|
||||
|
||||
# https://github.com/john-kurkowski/tldextract#note-about-caching
|
||||
PATCHES=( "${FILESDIR}/${P}_change_tldextract_cache_defaults.patch" )
|
||||
Loading…
Reference in a new issue