mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
6b8de6bf3c
Referencing it is not necessary any more, since using pythonRelaxDeps or pythonRemoveDeps will automatically make sure the hook is provided.
46 lines
890 B
Nix
46 lines
890 B
Nix
{ 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;
|
|
|
|
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";
|
|
};
|
|
}
|