1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, aiohttp
6, python-dateutil
7, requests
8, typing-extensions
9, websockets
10}:
11
12buildPythonPackage rec {
13 pname = "twitchapi";
14 version = "2.5.7.1";
15
16 disabled = pythonOlder "3.7";
17
18 format = "setuptools";
19
20 src = fetchPypi {
21 pname = "twitchAPI";
22 inherit version;
23 hash = "sha256-ZhmzrHWbwoHL+9FdkVoc+GGxH1v2j7rB/3ZiaWu9kjQ=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 python-dateutil
29 requests
30 typing-extensions
31 websockets
32 ];
33
34 # upstream has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "twitchAPI.eventsub"
39 "twitchAPI.oauth"
40 "twitchAPI.pubsub"
41 "twitchAPI.twitch"
42 "twitchAPI.types"
43 ];
44
45 meta = with lib; {
46 description = "Python implementation of the Twitch Helix API, its Webhook, PubSub and EventSub";
47 homepage = "https://github.com/Teekeks/pyTwitchAPI";
48 license = licenses.mit;
49 maintainers = with maintainers; [ dotlambda wolfangaukang ];
50 };
51}