Merge pull request #113701 from fabaff/twitterapi
This commit is contained in:
commit
dc8e6a669c
3 changed files with 37 additions and 1 deletions
34
pkgs/development/python-modules/twitterapi/default.nix
Normal file
34
pkgs/development/python-modules/twitterapi/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -872,7 +872,7 @@
|
|||
"twilio_sms" = ps: with ps; [ aiohttp-cors twilio ];
|
||||
"twinkly" = ps: with ps; [ ]; # missing inputs: twinkly-client
|
||||
"twitch" = ps: with ps; [ python-twitch-client ];
|
||||
"twitter" = ps: with ps; [ ]; # missing inputs: TwitterAPI
|
||||
"twitter" = ps: with ps; [ twitterapi ];
|
||||
"ubus" = ps: with ps; [ ];
|
||||
"ue_smart_radio" = ps: with ps; [ ];
|
||||
"uk_transport" = ps: with ps; [ ];
|
||||
|
|
|
@ -8047,6 +8047,8 @@ in {
|
|||
|
||||
twitter-common-options = callPackage ../development/python-modules/twitter-common-options { };
|
||||
|
||||
twitterapi = callPackage ../development/python-modules/twitterapi { };
|
||||
|
||||
twofish = callPackage ../development/python-modules/twofish { };
|
||||
|
||||
txaio = callPackage ../development/python-modules/txaio { };
|
||||
|
|
Loading…
Reference in a new issue