gnu: python-tweepy: Update to 4.16.0, fix build.

* gnu/packages/python-web.scm (python-tweepy): Update to 4.16.0.
[build-system]: Switch to pyproject-build-system.
[arguments] <tests?>: Enable.
<test-backend, test-flags>: Use 'unittest.
<phases>: Use defailt 'check.
[propagated-inputs]: Add python-async-lru and python-oauthlib.
[native-inputs]: Add nss-certs-for-test, python-flit-core, and
python-urllib3-1.26.

Change-Id: I113133c6e43cfa88541f6da7579ba42643fce1bd
This commit is contained in:
Sharlatan Hellseher 2025-12-04 22:40:03 +00:00
parent 2764d68cb4
commit b82086d6eb
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -12209,35 +12209,38 @@ Full documentation may be found at
(define-public python-tweepy
(package
(name "python-tweepy")
(version "4.4.0")
(version "4.16.0")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/tweepy/tweepy")
(commit (string-append "v" version))))
(url "https://github.com/tweepy/tweepy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0jl3j20iqvzqqw5q5ldval5wrc2pdx94zff3b6b87j51yjx3qjhr"))))
(build-system python-build-system)
(base32 "1k99qf0h1ykz0c56wdnlsyvd6zrcsrc4rl7rnlaxrpjppxjnpcpn"))))
(build-system pyproject-build-system)
(arguments
`(#:tests? #f ;XXX: need /etc/ssl/certs/ca-certificates.crt
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "discover" "tests")))))))
(propagated-inputs
(list python-aiohttp python-requests python-requests-oauthlib))
;; tests: 149 passed, 3 skipped, 1 warning
(list #:test-backend #~'unittest
#:test-flags #~(list "discover" "tests")))
(native-inputs
(list python-vcrpy))
(list nss-certs-for-test
python-flit-core
python-urllib3-1.26
python-vcrpy))
(propagated-inputs
(list python-aiohttp
python-async-lru
python-oauthlib
python-requests
python-requests-oauthlib))
(home-page "https://www.tweepy.org/")
(synopsis "Twitter library for Python")
(description "This package provides @code{Tweepy}, an easy-to-use Python
library for accessing the Twitter API.")
(description
"This package provides @code{Tweepy}, an easy-to-use Python library for
accessing the Twitter API.")
(license license:expat)))
(define-public python-quart