diff --git a/flake.nix b/flake.nix index 84784e8..4d947ed 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ redlib = import ./packages/redlib.nix { inherit pkgs lib; }; rexit = import ./packages/rexit.nix { inherit pkgs lib; }; rimgo = import ./packages/rimgo.nix { inherit pkgs lib; }; + tg-archive = import ./packages/tg-archive.nix { inherit pkgs lib; }; vuetorrent = import ./packages/vuetorrent.nix { inherit pkgs lib; }; weewx-proxy = import ./packages/weewx-proxy.nix { inherit pkgs lib; }; diff --git a/packages/tg-archive.nix b/packages/tg-archive.nix new file mode 100644 index 0000000..a60526b --- /dev/null +++ b/packages/tg-archive.nix @@ -0,0 +1,31 @@ +{ pkgs, lib }: + +pkgs.python3.pkgs.buildPythonApplication rec { + pname = "tg-archive"; + version = "1.1.3"; + pyproject = true; + + src = pkgs.fetchFromGitHub { + owner = "knadh"; + repo = pname; + rev = "v${version}"; + hash = "sha256-mcobB/z+e4LzEbqELWlUzhbdV5RIM2iImeg9JdVQQZc="; + }; + + nativeBuildInputs = with pkgs.python3.pkgs; [ + setuptools + wheel + ]; + + propagatedBuildInputs = with pkgs.python3.pkgs; [ + cryptg + feedgen + jinja2 + telethon + pillow + python-magic + pysocks + pytz + pyyaml + ]; +}