2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
requests,
|
|
|
|
requests-oauthlib,
|
|
|
|
pythonOlder,
|
2021-02-24 18:30:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitterapi";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "2.8.2";
|
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";
|
2023-03-27 19:17:25 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-4Z8XfgRhQXawCvaXM+kyMO3fejvXIF2LgVdmfXDDqIA=";
|
2021-02-24 18:30:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-02-24 18:30:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests are interacting with the Twitter API
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-06-05 15:53:02 +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";
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/geduldig/TwitterAPI/blob/v${version}/CHANGE.log";
|
2021-02-24 18:30:23 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|