about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorMasum Reza <50095635+JohnRTitor@users.noreply.github.com>2024-06-21 00:15:29 +0530
committerGitHub <noreply@github.com>2024-06-21 00:15:29 +0530
commitc497e80fffd5595f2ab09fd6c49491b7e503e528 (patch)
treedd081e0d2b7952c99c68a57c827bb4c2755bac07 /pkgs/by-name
parenta87387ec65df179527f061a76ec46071d24d8b78 (diff)
parentaa4afc89317e684899b96068bdf74c59961083c7 (diff)
Merge pull request #303121 from pacien/tg-archive-init
tg-archive: init at 1.1.3
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/tg/tg-archive/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/tg/tg-archive/package.nix b/pkgs/by-name/tg/tg-archive/package.nix
new file mode 100644
index 0000000000000..7fd336ecedece
--- /dev/null
+++ b/pkgs/by-name/tg/tg-archive/package.nix
@@ -0,0 +1,50 @@
+{ lib
+, python3
+, fetchFromGitHub
+}:
+
+let
+  pname = "tg-archive";
+  version = "1.1.3";
+
+in python3.pkgs.buildPythonApplication {
+  inherit pname version;
+
+  src = fetchFromGitHub {
+    owner = "knadh";
+    repo = "tg-archive";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-mcobB/z+e4LzEbqELWlUzhbdV5RIM2iImeg9JdVQQZc=";
+  };
+
+  pyproject = true;
+  pythonRelaxDeps = true;
+
+  nativeBuildInputs = with python3.pkgs; [
+    pythonRelaxDepsHook
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    setuptools
+    telethon
+    jinja2
+    pyyaml
+    cryptg
+    pillow
+    feedgen
+    python-magic
+    pytz
+  ];
+
+  pythonImportsCheck = [
+    "tgarchive"
+  ];
+
+  meta = {
+    description = "A tool for exporting Telegram group chats into static websites like mailing list archives";
+    homepage = "https://github.com/knadh/tg-archive";
+    license = lib.licenses.mit;
+    maintainers = with lib.maintainers; [ pacien ];
+    mainProgram = "tg-archive";
+  };
+}