2021-02-24 18:30:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests-oauthlib
|
2022-01-03 16:56:52 +00:00
|
|
|
, pythonOlder
|
2021-02-24 18:30:23 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitterapi";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.7.13";
|
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-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-48Gphpo3tPcVEGNOSEb8mQaSQARQDCOGFyhGJ+i4BWI=";
|
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
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|