1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5, requests_oauthlib
6}:
7
8buildPythonPackage rec {
9 pname = "twitterapi";
10 version = "2.7.7";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "geduldig";
15 repo = "TwitterAPI";
16 rev = "v${version}";
17 sha256 = "sha256-KEJ0lAg6Zi2vps+ZPTkT6ts87qnIBL9pFe1tPEzviCI=";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 requests_oauthlib
23 ];
24
25 # Tests are interacting with the Twitter API
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "TwitterAPI"
30 ];
31
32 meta = with lib; {
33 description = "Python wrapper for Twitter's REST and Streaming APIs";
34 homepage = "https://github.com/geduldig/TwitterAPI";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}