gnu: python-mastodon-py: Update to 2.1.4.

* gnu/packages/fediverse.scm (python-mastodon-py): Update to 2.1.4.
[build-system]: Switch to pyproject-build-system.
[arguments] <phases>: Add 'set-check-environment.
[propagated-inputs]: Remove python-pytz and python-six; add
python-cryptography, python-grapheme, and python-http-ece.
[native-inputs]: Remove python-blurhash, python-cryptography,
python-http-ece, python-pytest-runner, and python-pytest-vcr; add
nss-certs-for-test, python-pytest-recording, python-pytest-retry,
python-pytz, python-setuptools, and tzdata-for-tests.

Change-Id: I34cd7d5ee68cde737793f00b6f4e6b9cd0f915d3
This commit is contained in:
Sharlatan Hellseher 2025-10-01 12:09:59 +01:00
parent 6e5be16da6
commit 885fbb4cfe
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -34,6 +34,7 @@
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages bash) #:use-module (gnu packages bash)
#:use-module (gnu packages base)
#:use-module (gnu packages check) #:use-module (gnu packages check)
#:use-module (gnu packages curl) #:use-module (gnu packages curl)
#:use-module (gnu packages databases) #:use-module (gnu packages databases)
@ -44,6 +45,7 @@
#:use-module (gnu packages gstreamer) #:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk) #:use-module (gnu packages gtk)
#:use-module (gnu packages image) #:use-module (gnu packages image)
#:use-module (gnu packages nss)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python-build) #:use-module (gnu packages python-build)
#:use-module (gnu packages python-check) #:use-module (gnu packages python-check)
@ -222,34 +224,47 @@ seamlessly with your desktop environment.")
(define-public python-mastodon-py (define-public python-mastodon-py
(package (package
(name "python-mastodon-py") (name "python-mastodon-py")
(version "1.5.1") (version "2.1.4")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "Mastodon.py" version)) (uri (pypi-uri "mastodon_py" version))
(sha256 (sha256
(base32 (base32 "1988sanhh4162jilffa7r1n9ylls5v868ndfmnsp0z5k9p5fj0k6"))))
"1vikvkzcij2gd730cssigxi38vlmzqmwdy58r3y2cwsxifnxpz9a")))) (build-system pyproject-build-system)
(build-system python-build-system) (arguments
(propagated-inputs (list
(list python-blurhash #:phases
python-dateutil #~(modify-phases %standard-phases
python-decorator (add-before 'check 'set-check-environment
python-magic (lambda* (#:key inputs #:allow-other-keys)
python-pytz (setenv "TZ" "UTC")
python-requests (setenv "TZDIR"
python-six)) (search-input-directory inputs
"share/zoneinfo")))))))
(native-inputs (native-inputs
(list python-blurhash (list nss-certs-for-test
python-cryptography
python-http-ece
python-pytest python-pytest
python-pytest-cov python-pytest-cov
python-pytest-mock python-pytest-mock
python-pytest-runner python-pytest-recording
python-pytest-vcr python-pytest-retry
python-pytz
python-requests-mock python-requests-mock
python-vcrpy)) python-setuptools
python-vcrpy
tzdata-for-tests))
(propagated-inputs
(list python-blurhash
python-decorator
python-dateutil
python-magic
python-requests
;; [optional]
python-blurhash
python-cryptography
python-grapheme ;project was not updated for 6y
python-http-ece))
(home-page "https://github.com/halcy/Mastodon.py") (home-page "https://github.com/halcy/Mastodon.py")
(synopsis "Python wrapper for the Mastodon API") (synopsis "Python wrapper for the Mastodon API")
(description (description