From 9cb0d9e3c5662198d5a0f9656c43ec4fefb9b5bc Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Fri, 6 Nov 2020 03:58:59 +0300 Subject: gn: python-twint: Add substitute that casts some params properly --- gn/packages/twint.scm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'gn') diff --git a/gn/packages/twint.scm b/gn/packages/twint.scm index f694c99..fc09b86 100644 --- a/gn/packages/twint.scm +++ b/gn/packages/twint.scm @@ -206,7 +206,23 @@ (add-after 'unpack 'remove-deps (lambda _ (substitute* "setup.py" - (("'dataclasses',") ""))))))) + (("'dataclasses',") "")))) + (add-after 'remove-deps 'cast-variables-properly + (lambda _ + ;; TODO: Upstream this fix + (begin + (substitute* "twint/format.py" + ((", t.replies_count)") + ", str(t.replies_count))")) + (substitute* "twint/format.py" + ((", t.retweets_count)") + ", str(t.retweets_count))")) + (substitute* "twint/format.py" + ((", t.quote_url)") + ", str(t.quote_url))")) + (substitute* "twint/format.py" + ((", t.likes_count)") + ", str(t.likes_count))")))))))) (propagated-inputs `(("python-pycares" ,python-pycares) ("python-aiohttp-socks" ,python-aiohttp-socks-0.5.5) -- cgit v1.2.3