diff options
author | BonfaceKilz | 2020-11-06 03:58:59 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-11-10 02:01:05 +0300 |
commit | 9cb0d9e3c5662198d5a0f9656c43ec4fefb9b5bc (patch) | |
tree | 528c111a50b0f2e213e860d235111bb9e7917e11 /gn/packages | |
parent | 1743713d94971017597f0abf89cfa0dc25800ead (diff) | |
download | guix-bioinformatics-9cb0d9e3c5662198d5a0f9656c43ec4fefb9b5bc.tar.gz |
gn: python-twint: Add substitute that casts some params properly
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/twint.scm | 18 |
1 files changed, 17 insertions, 1 deletions
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) |