aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/twint.scm
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-05 23:03:53 +0300
committerBonfaceKilz2020-11-05 23:06:53 +0300
commit361db2c10a66d02dee8bb25fc8097941db76fd84 (patch)
treee6617263009b7a0a3527b1cf0a8c42a415c73a29 /gn/packages/twint.scm
parent7eeecee1f65fa094027a7d5e68b3b0076817032e (diff)
downloadguix-bioinformatics-361db2c10a66d02dee8bb25fc8097941db76fd84.tar.gz
gn: python-twint: Upgrade package.
* gn/packages/twint.scm (python-twint): [source]: Update to commit a45a8a which by-passes twitters move on removing their v1 apis. [arguments]: Delete "dataclasses" dependency from setup.py. [propagated-inputs]: Remove python-aiodns and python-pysocks. Use python-aiohttp-socks v0.5.5 and python-yarl v1.6.2.
Diffstat (limited to 'gn/packages/twint.scm')
-rw-r--r--gn/packages/twint.scm30
1 files changed, 18 insertions, 12 deletions
diff --git a/gn/packages/twint.scm b/gn/packages/twint.scm
index ef9d310..95dc53b 100644
--- a/gn/packages/twint.scm
+++ b/gn/packages/twint.scm
@@ -190,28 +190,34 @@
(name "python-twint")
(version "2.1.20")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "twint" version))
- (sha256
- (base32
- "0pcnn7p114agwk41vayp7wbc61yx7bwa1k7lz7gsa7p3jwcngdxk"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/twintproject/twint")
+ (commit "a45a8ac719d5710e7da92f77d9801b351e505c1f")))
+ (sha256
+ (base32
+ "1bixwrwh1v7vpv0y6skgkml8zm82w00qwkvd6q79pkdj3hczha75"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f))
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-deps
+ (lambda _
+ (substitute* "setup.py"
+ (("'dataclasses',") "")))))))
(propagated-inputs
- `(("python-aiodns" ,python-aiodns)
- ("python-pycares" ,python-pycares)
- ("python-aiohttp" ,python-aiohttp)
- ("python-aiohttp-socks" ,python-aiohttp-socks)
+ `(("python-pycares" ,python-pycares)
+ ("python-aiohttp-socks" ,python-aiohttp-socks-0.5.5)
("python-beautifulsoup4" ,python-beautifulsoup4)
("python-cchardet" ,python-cchardet)
("python-elasticsearch" ,python-elasticsearch)
("python-fake-useragent" ,python-fake-useragent)
("python-geopy" ,python-geopy)
+ ("python-yarl" ,python-yarl-1.6.2)
("python-googletransx" ,python-googletransx)
("python-pandas" ,python-pandas)
- ("python-pysocks" ,python-pysocks)
("python-schedule" ,python-schedule)))
(home-page
"https://github.com/twintproject/twint")