From c63a32357a807a6e967c5853220293b86c439549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 26 Apr 2018 08:53:27 +0200 Subject: [PATCH] python.pkgs.tweepy: fix build with pip 10 This applies https://github.com/tweepy/tweepy/pull/1030. --- pkgs/development/python-modules/tweepy/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tweepy/default.nix b/pkgs/development/python-modules/tweepy/default.nix index 3020ef80aa41..c0c74743044d 100644 --- a/pkgs/development/python-modules/tweepy/default.nix +++ b/pkgs/development/python-modules/tweepy/default.nix @@ -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 ];