Merge pull request #303121 from pacien/tg-archive-init

tg-archive: init at 1.1.3
This commit is contained in:
Masum Reza 2024-06-21 00:15:29 +05:30 committed by GitHub
commit c497e80fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";
};
}