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