16 buildPythonPackage rec {
21 disabled = pythonOlder "3.9";
23 src = fetchFromGitHub {
27 hash = "sha256-vbiMwaJh4cN7OY7eYu2s8azs3A0KXvW/kRPVCx50ZVA=";
30 build-system = [ setuptools ];
38 optional-dependencies = {
48 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
50 pythonImportsCheck = [ "tweepy" ];
52 # The checks with streaming fail due to (seemingly) not decoding (or unexpectedly sending response in) GZIP
53 # Same issue impacted mastodon-py, see https://github.com/halcy/Mastodon.py/commit/cd86887d88bbc07de462d1e00a8fbc3d956c0151 (who just disabled these)
54 disabledTestPaths = [ "tests/test_client.py" ];
57 "test_indicate_direct_message_typing"
58 "testcachedifferentqueryparameters"
60 "testcreatedestroyblock"
61 "testcreatedestroyfriendship"
62 "testcreateupdatedestroylist"
68 "testcursorcursoritems"
69 "testcursorcursorpages"
74 description = "Twitter library for Python";
75 homepage = "https://github.com/tweepy/tweepy";
76 changelog = "https://github.com/tweepy/tweepy/releases/tag/v${version}";
77 license = licenses.mit;
78 maintainers = with maintainers; [ marius851000 ];