nixpkgs/pkgs/development/python-modules/tweepy/default.nix

29 lines
828 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, fetchpatch, requests, six, requests_oauthlib }:
2018-04-26 07:46:54 +01:00
buildPythonPackage rec {
pname = "tweepy";
2018-04-26 07:53:00 +01:00
version = "3.6.0";
2018-04-26 07:46:54 +01:00
src = fetchPypi {
inherit pname version;
2018-04-26 07:53:00 +01:00
sha256 = "901500666de5e265d93e611dc05066bb020481c85550d6bcbf8030212938902c";
2018-04-26 07:46:54 +01:00
};
# Fix build with pip 10
# https://github.com/tweepy/tweepy/pull/1030
patches = fetchpatch {
url = "${meta.homepage}/commit/778bd7a31d2f5fae98652735e7844533589ca221.patch";
sha256 = "1sqmjn0ngiynhfkdkcs33qmvl49ysfp8522hvxjk8bx252y9qw2h";
};
2018-04-26 07:46:54 +01:00
doCheck = false;
propagatedBuildInputs = [ requests six requests_oauthlib ];
meta = with lib; {
homepage = https://github.com/tweepy/tweepy;
description = "Twitter library for python";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
};
}