blob: f9db5fa4ecc8c9332f497693a8395727e9254560 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, wheel
, aiohttp
, python-dateutil
, typing-extensions
}:
buildPythonPackage rec {
pname = "twitchapi";
version = "4.0.1";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "Teekeks";
repo = "pyTwitchAPI";
rev = "refs/tags/v${version}";
hash = "sha256-WrZb734K51NYqlcMCRr8HO8E7XByioltd4vanTN8HUg=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
aiohttp
python-dateutil
typing-extensions
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [
"twitchAPI.eventsub"
"twitchAPI.oauth"
"twitchAPI.pubsub"
"twitchAPI.twitch"
"twitchAPI.type"
];
meta = with lib; {
changelog = "https://github.com/Teekeks/pyTwitchAPI/blob/${src.rev}/docs/changelog.rst";
description = "Python implementation of the Twitch Helix API, its Webhook, PubSub and EventSub";
homepage = "https://github.com/Teekeks/pyTwitchAPI";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda wolfangaukang ];
};
}
|