2021-08-14 22:18:40 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytwitchapi";
|
2021-10-16 10:23:40 +01:00
|
|
|
version = "2.5.0";
|
2021-08-14 22:18:40 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Teekeks";
|
|
|
|
repo = "pyTwitchAPI";
|
|
|
|
rev = "v${version}";
|
2021-10-16 10:23:40 +01:00
|
|
|
sha256 = "0sbzl9a4zxnvnvkmmmfc9c157dgq7y6qfb2cid5nym6jhxkixnqk";
|
2021-08-14 22:18:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|