1{ lib
2, aiohttp
3, async-lru
4, buildPythonPackage
5, fetchFromGitHub
6, oauthlib
7, pytestCheckHook
8, pythonOlder
9, requests
10, requests-oauthlib
11, six
12, vcrpy
13}:
14
15buildPythonPackage rec {
16 pname = "tweepy";
17 version = "4.12.0";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = pname;
24 repo = pname;
25 rev = "refs/tags/v${version}";
26 hash = "sha256-Ru0DCl9MOrU4uZvLXDxM4txD0D/GR4eYBHvqeMcbTVA=";
27 };
28
29 propagatedBuildInputs = [
30 aiohttp
31 async-lru
32 oauthlib
33 requests
34 requests-oauthlib
35 six
36 ];
37
38 checkInputs = [
39 pytestCheckHook
40 vcrpy
41 ];
42
43 pythonImportsCheck = [
44 "tweepy"
45 ];
46
47 meta = with lib; {
48 description = "Twitter library for Python";
49 homepage = "https://github.com/tweepy/tweepy";
50 license = licenses.mit;
51 maintainers = with maintainers; [ ];
52 };
53}