depot/third_party/nixpkgs/pkgs/development/python-modules/twitchapi/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

56 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, wheel
, aiohttp
, python-dateutil
, typing-extensions
}:
buildPythonPackage rec {
pname = "twitchapi";
version = "4.1.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitHub {
owner = "Teekeks";
repo = "pyTwitchAPI";
rev = "refs/tags/v${version}";
hash = "sha256-aYYuHyILd3nT0jG59wJcRgSeri26YsC3NpwuQ9dsI1I=";
};
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 ];
};
}