2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2022-03-05 16:20:37 +00:00
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, typing-extensions
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitchapi";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.5.7.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "twitchAPI";
|
|
|
|
inherit version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-ZhmzrHWbwoHL+9FdkVoc+GGxH1v2j7rB/3ZiaWu9kjQ=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
typing-extensions
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"twitchAPI.eventsub"
|
|
|
|
"twitchAPI.oauth"
|
|
|
|
"twitchAPI.pubsub"
|
|
|
|
"twitchAPI.twitch"
|
|
|
|
"twitchAPI.types"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python implementation of the Twitch Helix API, its Webhook, PubSub and EventSub";
|
|
|
|
homepage = "https://github.com/Teekeks/pyTwitchAPI";
|
|
|
|
license = licenses.mit;
|
2022-03-10 19:12:11 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda wolfangaukang ];
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|