depot/third_party/nixpkgs/pkgs/development/python-modules/twitchapi/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

51 lines
985 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, python-dateutil
, requests
, typing-extensions
, websockets
}:
buildPythonPackage rec {
pname = "twitchapi";
version = "2.5.7.1";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
pname = "twitchAPI";
inherit version;
hash = "sha256-ZhmzrHWbwoHL+9FdkVoc+GGxH1v2j7rB/3ZiaWu9kjQ=";
};
propagatedBuildInputs = [
aiohttp
python-dateutil
requests
typing-extensions
websockets
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [
"twitchAPI.eventsub"
"twitchAPI.oauth"
"twitchAPI.pubsub"
"twitchAPI.twitch"
"twitchAPI.types"
];
meta = with lib; {
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 ];
};
}