a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
41 lines
834 B
Nix
41 lines
834 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, aiohttp
|
|
, python-dateutil
|
|
, requests
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytwitchapi";
|
|
version = "2.5.1";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Teekeks";
|
|
repo = "pyTwitchAPI";
|
|
rev = "v${version}";
|
|
sha256 = "091p9yx0cc7aclj76s1n1jdzkypicy9b2mxgmk2fym5viqlgpbkk";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
python-dateutil
|
|
requests
|
|
websockets
|
|
];
|
|
|
|
# Project has no tests.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "twitchAPI" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation of the Twitch Helix API, its Webhook and PubSub";
|
|
homepage = "https://github.com/Teekeks/pyTwitchAPI";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
|
};
|
|
}
|