2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, typing-extensions
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitchapi";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "2.5.3";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "twitchAPI";
|
|
|
|
inherit version;
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "e7987dd8c3d1a3d25fe85ff0c0b0bad492f916c920f618dca8efd6baad3ac704";
|
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
|
|
|
};
|
|
|
|
}
|