Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 744 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, requests_oauthlib 6}: 7 8buildPythonPackage rec { 9 pname = "twitterapi"; 10 version = "2.7.3"; 11 12 src = fetchFromGitHub { 13 owner = "geduldig"; 14 repo = "TwitterAPI"; 15 rev = "v${version}"; 16 sha256 = "sha256-82TOVrC7wX7E9lKsx3iGxaEEjHSzf5uZwePBvAw3hDk="; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 requests_oauthlib 22 ]; 23 24 # Tests are interacting with the Twitter API 25 doCheck = false; 26 pythonImportsCheck = [ "TwitterAPI" ]; 27 28 meta = with lib; { 29 description = "Python wrapper for Twitter's REST and Streaming APIs"; 30 homepage = "https://github.com/geduldig/TwitterAPI"; 31 license = with licenses; [ mit ]; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}