2021-02-24 18:30:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, requests_oauthlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitterapi";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "2.7.3";
|
2021-02-24 18:30:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geduldig";
|
|
|
|
repo = "TwitterAPI";
|
|
|
|
rev = "v${version}";
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-82TOVrC7wX7E9lKsx3iGxaEEjHSzf5uZwePBvAw3hDk=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|