0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, aiohttp
|
|
, python-dateutil
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twitchapi";
|
|
version = "3.4.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "twitchAPI";
|
|
inherit version;
|
|
hash = "sha256-q35ijx4zDR07k9al11T1H7SPYG9M8g8+rD/TNrkL2Ek=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
python-dateutil
|
|
typing-extensions
|
|
];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"twitchAPI.eventsub"
|
|
"twitchAPI.oauth"
|
|
"twitchAPI.pubsub"
|
|
"twitchAPI.twitch"
|
|
"twitchAPI.types"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/Teekeks/pyTwitchAPI/blob/v${version}/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 ];
|
|
};
|
|
}
|