From be723e5168cc6e42edef024032080f9de8bd0338 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Nov 2021 23:38:28 +0100 Subject: [PATCH] python3Packages.tweepy: 4.0.1 -> 4.3.0 --- .../python-modules/tweepy/default.nix | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/tweepy/default.nix b/pkgs/development/python-modules/tweepy/default.nix index ee5c8582948d..7892975a45d9 100644 --- a/pkgs/development/python-modules/tweepy/default.nix +++ b/pkgs/development/python-modules/tweepy/default.nix @@ -1,20 +1,48 @@ -{ lib, buildPythonPackage, fetchPypi, requests, six, requests_oauthlib }: +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, oauthlib +, requests +, pythonOlder +, vcrpy +, pytestCheckHook +, requests_oauthlib +}: buildPythonPackage rec { pname = "tweepy"; - version = "4.0.1"; + version = "4.3.0"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "3bbb14a0ddef1ca8c9e8686ab2f647163afa02a6bab83507335ce647e9653a90"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-lS/98DRpJH1UGGNzwqVVUJOeul+BX+I3e+ysmC0oL3I="; }; - doCheck = false; - propagatedBuildInputs = [ requests six requests_oauthlib ]; + propagatedBuildInputs = [ + aiohttp + oauthlib + requests + requests_oauthlib + ]; + + checkInputs = [ + pytestCheckHook + vcrpy + ]; + + pythonImportsCheck = [ + "tweepy" + ]; meta = with lib; { homepage = "https://github.com/tweepy/tweepy"; - description = "Twitter library for python"; + description = "Twitter library for Python"; license = licenses.mit; maintainers = with maintainers; [ ]; };