mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
245b2a5ebe
Diff: https://github.com/Teekeks/pyTwitchAPI/compare/refs/tags/v4.2.1...v4.3.1 Changelog: https://github.com/Teekeks/pyTwitchAPI/blob/refs/tags/v4.3.1/docs/changelog.rst
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
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
|
|
];
|
|
};
|
|
}
|