Merge pull request #113781 from fabaff/python-twitch-client

This commit is contained in:
Sandro 2021-02-21 05:07:15 +01:00 committed by GitHub
commit bec8749074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
, responses
}:
buildPythonPackage rec {
pname = "python-twitch-client";
version = "0.7.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "tsifrer";
repo = pname;
rev = version;
sha256 = "10wwkam3dw0nqr3v9xzigx1zjlrnrhzr7jvihddvzi84vjb6j443";
};
propagatedBuildInputs = [ requests ];
checkInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [ "twitch" ];
meta = with lib; {
description = "Python wrapper for the Twitch API";
homepage = "https://github.com/tsifrer/python-twitch-client";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -871,7 +871,7 @@
"twilio_call" = ps: with ps; [ aiohttp-cors twilio ];
"twilio_sms" = ps: with ps; [ aiohttp-cors twilio ];
"twinkly" = ps: with ps; [ ]; # missing inputs: twinkly-client
"twitch" = ps: with ps; [ ]; # missing inputs: python-twitch-client
"twitch" = ps: with ps; [ python-twitch-client ];
"twitter" = ps: with ps; [ ]; # missing inputs: TwitterAPI
"ubus" = ps: with ps; [ ];
"ue_smart_radio" = ps: with ps; [ ];

View File

@ -6491,6 +6491,8 @@ in {
python-toolbox = callPackage ../development/python-modules/python-toolbox { };
python-twitch-client = callPackage ../development/python-modules/python-twitch-client { };
python-twitter = callPackage ../development/python-modules/python-twitter { };
python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { };