depot/third_party/nixpkgs/pkgs/development/python-modules/twitterapi/default.nix
Default email 439a6efcab Project import generated by Copybara.
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
2021-02-24 18:30:23 +00:00

34 lines
745 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "twitterapi";
version = "2.6.6";
src = fetchFromGitHub {
owner = "geduldig";
repo = "TwitterAPI";
rev = "v${version}";
sha256 = "0ib4yggigpkn8rp71j94xyxl20smh3d04xsa9fhyh0mws4ri33j8";
};
propagatedBuildInputs = [
requests
requests_oauthlib
];
# Tests are interacting with the Twitter API
doCheck = false;
pythonImportsCheck = [ "TwitterAPI" ];
meta = with lib; {
description = "Python wrapper for Twitter's REST and Streaming APIs";
homepage = "https://github.com/geduldig/TwitterAPI";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}