depot/third_party/nixpkgs/pkgs/development/python-modules/twitchapi/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

48 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, python-dateutil
, typing-extensions
}:
buildPythonPackage rec {
pname = "twitchapi";
version = "3.11.0";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
pname = "twitchAPI";
inherit version;
hash = "sha256-TkQzF32nt89uBvC6aj/b5f2DQkOVDz7UyeUXRyVYumM=";
};
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 ];
};
}