Files
nixpkgs/pkgs/by-name/tg/tg-archive/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
883 B
Nix

{
lib,
python3,
fetchFromGitHub,
}:
let
pname = "tg-archive";
version = "1.3.0";
in
python3.pkgs.buildPythonApplication {
inherit pname version;
src = fetchFromGitHub {
owner = "knadh";
repo = "tg-archive";
tag = "v${version}";
hash = "sha256-/b9LmHOyFqaKiQ5FHemLmg6DZU+3zzh1jLBEI7RTu4Q=";
};
pyproject = true;
pythonRelaxDeps = true;
propagatedBuildInputs = with python3.pkgs; [
setuptools
telethon
jinja2
pyyaml
cryptg
pillow
feedgen
python-magic
pytz
];
pythonImportsCheck = [
"tgarchive"
];
meta = {
description = "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; [ euxane ];
mainProgram = "tg-archive";
};
}