1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 18:34:41 +00:00

python.pkgs.tweepy: fix build with pip 10

This applies https://github.com/tweepy/tweepy/pull/1030.
This commit is contained in:
Robert Schütz 2018-04-26 08:53:27 +02:00
parent 4d0989fe04
commit c63a32357a

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, requests, six, requests_oauthlib }:
{ lib, buildPythonPackage, fetchPypi, fetchpatch, requests, six, requests_oauthlib }:
buildPythonPackage rec {
pname = "tweepy";
@ -9,6 +9,13 @@ buildPythonPackage rec {
sha256 = "901500666de5e265d93e611dc05066bb020481c85550d6bcbf8030212938902c";
};
# Fix build with pip 10
# https://github.com/tweepy/tweepy/pull/1030
patches = fetchpatch {
url = "${meta.homepage}/commit/778bd7a31d2f5fae98652735e7844533589ca221.patch";
sha256 = "1sqmjn0ngiynhfkdkcs33qmvl49ysfp8522hvxjk8bx252y9qw2h";
};
doCheck = false;
propagatedBuildInputs = [ requests six requests_oauthlib ];