forked from mirrors/nixpkgs
Merge pull request #133871 from WolfangAukang/pyTwitchAPI-init
python38Packages.pytwitchapi: init at 2.3.2
This commit is contained in:
commit
d20ca32540
41
pkgs/development/python-modules/pytwitchapi/default.nix
Normal file
41
pkgs/development/python-modules/pytwitchapi/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
, aiohttp
|
||||||
|
, python-dateutil
|
||||||
|
, requests
|
||||||
|
, websockets
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pytwitchapi";
|
||||||
|
version = "2.3.0";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Teekeks";
|
||||||
|
repo = "pyTwitchAPI";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-ax3FHyyyRfXSWKsoUi8ao5TL2alo0bQP+lWiDaPjf34=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7307,6 +7307,8 @@ in {
|
||||||
|
|
||||||
pyturbojpeg = callPackage ../development/python-modules/pyturbojpeg { };
|
pyturbojpeg = callPackage ../development/python-modules/pyturbojpeg { };
|
||||||
|
|
||||||
|
pytwitchapi = callPackage ../development/python-modules/pytwitchapi { };
|
||||||
|
|
||||||
pytz = callPackage ../development/python-modules/pytz { };
|
pytz = callPackage ../development/python-modules/pytz { };
|
||||||
|
|
||||||
pytzdata = callPackage ../development/python-modules/pytzdata { };
|
pytzdata = callPackage ../development/python-modules/pytzdata { };
|
||||||
|
|
Loading…
Reference in a new issue