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.14.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-ugqa85l0eWVtMUl5d+BjEWvTyH8c5NVtsnPflkHTWh8=";
27 };
28
29 propagatedBuildInputs = [
30 aiohttp
31 async-lru
32 oauthlib
33 requests
34 requests-oauthlib
35 six
36 ];
37
38 nativeCheckInputs = [
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 changelog = "https://github.com/tweepy/tweepy/releases/tag/v${version}";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}