From b82086d6eb9971dc2228fd640b516ded1c9591c0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 4 Dec 2025 22:40:03 +0000 Subject: [PATCH] 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] : Enable. : Use 'unittest. : 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 --- gnu/packages/python-web.scm | 39 ++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 67292785fd9b777284898f50a36fc7133938a172..c6293f56b81cca6d2b731e38e6b5df8c107b0f98 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -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