2022-03-02 19:22:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-06-06 04:08:34 +01:00
|
|
|
, pythonOlder
|
2022-03-02 19:22:59 +00:00
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, typing-extensions
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "twitchapi";
|
2022-08-01 10:04:13 +01:00
|
|
|
version = "2.5.7.1";
|
2022-06-06 04:08:34 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-02 19:22:59 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "twitchAPI";
|
|
|
|
inherit version;
|
2022-08-01 10:04:13 +01:00
|
|
|
hash = "sha256-ZhmzrHWbwoHL+9FdkVoc+GGxH1v2j7rB/3ZiaWu9kjQ=";
|
2022-03-02 19:22:59 +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-07 20:02:23 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda wolfangaukang ];
|
2022-03-02 19:22:59 +00:00
|
|
|
};
|
|
|
|
}
|