depot/third_party/nixpkgs/pkgs/by-name/tg/tg-archive/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

48 lines
885 B
Nix

{
lib,
python3,
fetchFromGitHub,
}:
let
pname = "tg-archive";
version = "1.2.2";
in
python3.pkgs.buildPythonApplication {
inherit pname version;
src = fetchFromGitHub {
owner = "knadh";
repo = "tg-archive";
tag = "v${version}";
hash = "sha256-baosQnA67+v0XxGrXEYjGGsKCBj1uRcYgfKkqO2GST4=";
};
pyproject = true;
pythonRelaxDeps = true;
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; [ euxane ];
mainProgram = "tg-archive";
};
}