depot/third_party/nixpkgs/pkgs/development/python-modules/pytwitchapi/default.nix
Default email 8d28093ffb Project import generated by Copybara.
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
2021-09-26 14:46:18 +02:00

41 lines
834 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, aiohttp
, python-dateutil
, requests
, websockets
}:
buildPythonPackage rec {
pname = "pytwitchapi";
version = "2.4.2";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Teekeks";
repo = "pyTwitchAPI";
rev = "v${version}";
sha256 = "0fq1ky6nbrb47mlznl3vq8m86lqb6p78fvbcy8x3rm3m5zngxnz7";
};
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 ];
};
}