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