Merge pull request #113701 from fabaff/twitterapi

This commit is contained in:
Sandro 2021-02-24 12:16:01 +01:00 committed by GitHub
commit dc8e6a669c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 1 deletions

View 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 ];
};
}

View file

@ -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; [ ];

View file

@ -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 { };