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