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