1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, aiohttp
6, python-dateutil
7, requests
8, websockets
9}:
10
11buildPythonPackage rec {
12 pname = "pytwitchapi";
13 version = "2.5.0";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "Teekeks";
18 repo = "pyTwitchAPI";
19 rev = "v${version}";
20 sha256 = "0sbzl9a4zxnvnvkmmmfc9c157dgq7y6qfb2cid5nym6jhxkixnqk";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 python-dateutil
26 requests
27 websockets
28 ];
29
30 # Project has no tests.
31 doCheck = false;
32
33 pythonImportsCheck = [ "twitchAPI" ];
34
35 meta = with lib; {
36 description = "Python implementation of the Twitch Helix API, its Webhook and PubSub";
37 homepage = "https://github.com/Teekeks/pyTwitchAPI";
38 license = licenses.mit;
39 maintainers = with maintainers; [ wolfangaukang ];
40 };
41}