depot/third_party/nixpkgs/pkgs/development/python-modules/pytwitchapi/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

41 lines
833 B
Nix

{ 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 ];
};
}