summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-02-11 19:24:23 +0100
committerGitHub <noreply@github.com>2021-02-11 19:24:23 +0100
commit16864efdfe9b8dc4bfcd6aa744047ba2b5165abe (patch)
treef4659f741a44b68174d9dd7997a0cc82c4e1e31d /pkgs/applications/misc
parentbde46aca9ea536b0c97081b532f75be47d38cb71 (diff)
parent04562bfeba51cfccb48e06286e5592ad41285dc2 (diff)
downloadnixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar.gz
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar.bz2
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar.lz
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar.xz
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.tar.zst
nixpkgs-16864efdfe9b8dc4bfcd6aa744047ba2b5165abe.zip
Merge pull request #112712 from marsam/init-twitch-chat-downloader
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/twitch-chat-downloader/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/twitch-chat-downloader/default.nix b/pkgs/applications/misc/twitch-chat-downloader/default.nix
new file mode 100644
index 00000000000..a8ffb46c1f8
--- /dev/null
+++ b/pkgs/applications/misc/twitch-chat-downloader/default.nix
@@ -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 ];
+  };
+}