-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtg-archive.nix
More file actions
47 lines (46 loc) · 1002 Bytes
/
Copy pathtg-archive.nix
File metadata and controls
47 lines (46 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ lib
, fetchFromGitHub
, buildPythonApplication
, telethon
, jinja2
, pyyaml # PyYAML
, cryptg
, pillow # Pillow
, feedgen
, python-magic
, setuptools # pkg_resources
, pytz
}:
buildPythonApplication rec {
pname = "tg-archive";
version = "1.3.0";
src = fetchFromGitHub {
owner = "knadh";
repo = "tg-archive";
rev = "v${version}";
hash = "sha256-/b9LmHOyFqaKiQ5FHemLmg6DZU+3zzh1jLBEI7RTu4Q=";
};
# relax dependencies
postPatch = ''
sed -i 's/==/>=/' requirements.txt
'';
propagatedBuildInputs = [
#python-telegram-bot # gi
telethon
jinja2
pyyaml # PyYAML
cryptg
pillow # Pillow
feedgen
python-magic
setuptools # pkg_resources
pytz
];
meta = with lib; {
homepage = "https://github.com/knadh/tg-archive";
description = "export Telegram group chats into static websites to preserve chat history like mailing list archives";
#maintainers = [];
license = licenses.mit;
#platforms = platforms.linux;
};
}