2021-02-24 18:30:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
, requests_oauthlib
|
2022-01-03 16:56:52 +00:00
|
|
|
, pythonOlder
|
2021-02-24 18:30:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitterapi";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "2.7.11";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-02-24 18:30:23 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geduldig";
|
|
|
|
repo = "TwitterAPI";
|
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-Rxc0ld0U8fhE3yJV+rgGsOfOdN6xGk0NQuHscpvergs=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
requests_oauthlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are interacting with the Twitter API
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"TwitterAPI"
|
|
|
|
];
|
2021-02-24 18:30:23 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|