linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / twitterapi / default.nix
blob11f596e01d07e3563f064c8e060e1a59307e8076
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , requests_oauthlib
6 }:
8 buildPythonPackage rec {
9   pname = "twitterapi";
10   version = "2.7.1";
12   src = fetchFromGitHub {
13     owner = "geduldig";
14     repo = "TwitterAPI";
15     rev = "v${version}";
16     sha256 = "sha256-fLexFlnoh58b9q4mo9atGQmMttKytTfAYmaPj6xmPj8=";
17   };
19   propagatedBuildInputs = [
20     requests
21     requests_oauthlib
22   ];
24   # Tests are interacting with the Twitter API
25   doCheck = false;
26   pythonImportsCheck = [ "TwitterAPI" ];
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   };