1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 requests-oauthlib, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "twitterapi"; 12 version = "2.8.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "geduldig"; 19 repo = "TwitterAPI"; 20 tag = "v${version}"; 21 hash = "sha256-4Z8XfgRhQXawCvaXM+kyMO3fejvXIF2LgVdmfXDDqIA="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 requests-oauthlib 27 ]; 28 29 # Tests are interacting with the Twitter API 30 doCheck = false; 31 32 pythonImportsCheck = [ "TwitterAPI" ]; 33 34 meta = with lib; { 35 description = "Python wrapper for Twitter's REST and Streaming APIs"; 36 homepage = "https://github.com/geduldig/TwitterAPI"; 37 changelog = "https://github.com/geduldig/TwitterAPI/blob/v${version}/CHANGE.log"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}