blob: 7fa9b9d0f22cb92fffbcc83383a9db058b179a11 (
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
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
python-dateutil,
typing-extensions,
}:
buildPythonPackage rec {
pname = "twitchapi";
version = "4.3.1";
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchFromGitHub {
owner = "Teekeks";
repo = "pyTwitchAPI";
rev = "refs/tags/v${version}";
hash = "sha256-pXbrI4WbId6nYbDSpF9cYnQBOkbNGvzW6/opCztZ1ck=";
};
postPatch = ''
sed -i "/document_enum/d" twitchAPI/type.py
'';
pythonRemoveDeps = [
"enum-tools"
];
build-system = [ setuptools ];
dependencies = [
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
];
};
}
|