f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
aiohttp,
|
|
python-dateutil,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twitchapi";
|
|
version = "4.2.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Teekeks";
|
|
repo = "pyTwitchAPI";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DT8Q8x+OvrxnoLWwdS/Gv8x5cepJPIF1ZPyOumnwq2E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|