aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-12-17 15:02:14 +0300
committerBonfaceKilz2020-12-17 15:02:14 +0300
commit5faea0c3e10471d142e6509499cff2f2c234aa45 (patch)
tree170e756067e70fbba0e9cb1b1f679e9a745f1883
parent1eb8f35d65afd67cfd8653d06e39c1f4d2ff6588 (diff)
downloadguix-bioinformatics-5faea0c3e10471d142e6509499cff2f2c234aa45.tar.gz
gn: python-twint: Patch Token class in order to get refreshTokens
* gn/packages/twint.scm [patches]: Add python-twint-token.patch. * python-twint-token.patch: New file.
-rw-r--r--gn/packages/twint.scm3
-rw-r--r--python-twint-token.patch11
2 files changed, 13 insertions, 1 deletions
diff --git a/gn/packages/twint.scm b/gn/packages/twint.scm
index ae79eac..29ebd9c 100644
--- a/gn/packages/twint.scm
+++ b/gn/packages/twint.scm
@@ -199,7 +199,8 @@
(base32
"1bixwrwh1v7vpv0y6skgkml8zm82w00qwkvd6q79pkdj3hczha75"))
(patches (search-patches "python-twint-userlist.patch"
- "python-twint-mentions.patch"))))
+ "python-twint-mentions.patch"
+ "python-twint-token.patch"))))
(build-system python-build-system)
(arguments
`(#:tests? #f
diff --git a/python-twint-token.patch b/python-twint-token.patch
new file mode 100644
index 0000000..570ca8b
--- /dev/null
+++ b/python-twint-token.patch
@@ -0,0 +1,11 @@
+diff --git a/twint/token.py b/twint/token.py
+index 0eeb0dc..63b637a 100644
+--- a/twint/token.py
++++ b/twint/token.py
+@@ -20,0 +21,6 @@ class Token:
++ self._session.headers.update(
++ {'User-Agent':
++ ('Mozilla/5.0 '
++ '(Windows NT 10.0;'
++ ' Win64; x64; rv:78.0)'
++ ' Gecko/20100101 Firefox/78.0')})