Merge pull request #112712 from marsam/init-twitch-chat-downloader

master
Sandro 2021-02-11 19:24:23 +01:00 committed by GitHub
commit 16864efdfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonApplication
, fetchPypi
, requests
, twitch-python
, pytz
, python-dateutil
}:
buildPythonApplication rec {
pname = "twitch-chat-downloader";
version = "3.2.1";
src = fetchPypi {
inherit version;
pname = "tcd";
sha256 = "f9b5ea2ad3badb7deffdd9604368ccb54170cd7929efbaa2d7b534e089ae6338";
};
postPatch = ''
substituteInPlace setup.py --replace "'pipenv>=2020.5.28'," ""
'';
propagatedBuildInputs = [ requests twitch-python pytz python-dateutil ];
doCheck = false; # no tests
pythonImportsCheck = [ "tcd" ];
meta = with lib; {
description = "Twitch Chat Downloader";
homepage = "https://github.com/PetterKraabol/Twitch-Chat-Downloader";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}

View File

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi, requests, rx, pytestCheckHook, responses, isPy3k }:
buildPythonPackage rec {
pname = "twitch-python";
version = "0.0.19";
src = fetchPypi {
inherit pname version;
sha256 = "b0b02abdd33458e4ffabc632aa6a6779f3599e188819632551353b6c5553f5c5";
};
disabled = !isPy3k;
postPatch = ''
substituteInPlace setup.py --replace "'pipenv'," ""
'';
propagatedBuildInputs = [ requests rx ];
checkInputs = [ pytestCheckHook responses ];
pythonImportsCheck = [ "twitch" ];
meta = with lib; {
description = "Twitch module for Python";
homepage = "https://github.com/PetterKraabol/Twitch-Python";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}

View File

@ -8510,6 +8510,8 @@ in
libX11 = xorg.libX11;
};
twitch-chat-downloader = python3Packages.callPackage ../applications/misc/twitch-chat-downloader { };
twitterBootstrap = callPackage ../development/web/twitter-bootstrap {};
twtxt = callPackage ../applications/networking/twtxt { };

View File

@ -7927,6 +7927,8 @@ in {
twisted = callPackage ../development/python-modules/twisted { };
twitch-python = callPackage ../development/python-modules/twitch-python { };
twitter = callPackage ../development/python-modules/twitter { };
twitter-common-collections = callPackage ../development/python-modules/twitter-common-collections { };