19 buildPythonPackage rec {
20 pname = "mastodon-py";
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-r0AAUjd2MBfZANEpyztMNyaQTlGWvWoUVjJNO1eL218=";
32 sed -i '/addopts/d' setup.cfg
39 propagatedBuildInputs = [
48 passthru.optional-dependencies = {
64 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
67 "test_notifications_dismiss_pre_2_9_2"
68 "test_status_card_pre_2_9_2"
69 "test_stream_user_direct"
70 "test_stream_user_local"
73 pythonImportsCheck = [ "mastodon" ];
76 changelog = "https://github.com/halcy/Mastodon.py/blob/${src.rev}/CHANGELOG.rst";
77 description = "Python wrapper for the Mastodon API";
78 homepage = "https://github.com/halcy/Mastodon.py";
79 license = licenses.mit;
80 maintainers = with maintainers; [ dotlambda ];