1{ lib, buildPythonPackage, fetchPypi, fetchpatch, requests, six, requests_oauthlib }:
2
3buildPythonPackage rec {
4 pname = "tweepy";
5 version = "3.6.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "901500666de5e265d93e611dc05066bb020481c85550d6bcbf8030212938902c";
10 };
11
12 # Fix build with pip 10
13 # https://github.com/tweepy/tweepy/pull/1030
14 patches = fetchpatch {
15 url = "${meta.homepage}/commit/778bd7a31d2f5fae98652735e7844533589ca221.patch";
16 sha256 = "1sqmjn0ngiynhfkdkcs33qmvl49ysfp8522hvxjk8bx252y9qw2h";
17 };
18
19 doCheck = false;
20 propagatedBuildInputs = [ requests six requests_oauthlib ];
21
22 meta = with lib; {
23 homepage = https://github.com/tweepy/tweepy;
24 description = "Twitter library for python";
25 license = licenses.mit;
26 maintainers = with maintainers; [ garbas ];
27 };
28}