20 buildPythonPackage rec {
21 pname = "mastodon-py";
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 hash = "sha256-r0AAUjd2MBfZANEpyztMNyaQTlGWvWoUVjJNO1eL218=";
33 sed -i '/addopts/d' setup.cfg
36 nativeBuildInputs = [ setuptools ];
38 propagatedBuildInputs = [
47 optional-dependencies = {
48 blurhash = [ blurhash ];
61 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
64 "test_notifications_dismiss_pre_2_9_2"
65 "test_status_card_pre_2_9_2"
66 "test_stream_user_direct"
67 "test_stream_user_local"
70 pythonImportsCheck = [ "mastodon" ];
73 changelog = "https://github.com/halcy/Mastodon.py/blob/${src.rev}/CHANGELOG.rst";
74 description = "Python wrapper for the Mastodon API";
75 homepage = "https://github.com/halcy/Mastodon.py";
76 license = licenses.mit;
77 maintainers = with maintainers; [ dotlambda ];