From 361db2c10a66d02dee8bb25fc8097941db76fd84 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 5 Nov 2020 23:03:53 +0300 Subject: 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. --- gn/packages/twint.scm | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'gn') 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") -- cgit v1.2.3