2021-08-14 23:18:40 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytwitchapi";
|
2022-02-25 02:50:48 +01:00
|
|
|
version = "2.5.2";
|
2022-02-25 08:35:28 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-08-14 23:18:40 +02:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Teekeks";
|
|
|
|
repo = "pyTwitchAPI";
|
|
|
|
rev = "v${version}";
|
2022-02-25 08:35:28 +01:00
|
|
|
hash = "sha256-i+oAx23bMu+jaXHPWElD5GJH6vSytW/9N1amsmma4Lc=";
|
2021-08-14 23:18:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests.
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-02-25 08:35:28 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"twitchAPI"
|
|
|
|
];
|
2021-08-14 23:18:40 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|