Unverified Commit e6a5120e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

tgeraser: init at 1.4.2 (#466279)

parents 6a35efdf 5786b2df
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  lib,
  python3Packages,
  versionCheckHook,
}:
python3Packages.buildPythonApplication rec {
  pname = "tgeraser";
  version = "1.4.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "en9inerd";
    repo = "tgeraser";
    tag = "v${version}";
    hash = "sha256-xB6bdB6ndyS3EOb3D2h9mRbelUXSQXkBkDvzCm7m5TY=";
  };

  build-system = [ python3Packages.setuptools ];

  dependencies = with python3Packages; [
    docopt
    pyaes
    pyasn1
    rsa
    telethon
  ];

  pythonImportsCheck = [ "tgeraser" ];

  nativeCheckInputs = [ versionCheckHook ];

  versionCheckProgramArg = "--version";

  meta = {
    description = "Tool to delete all your messages from Telegram";
    longDescription = ''
      TgEraser is a Python tool that allows you to delete all your messages from
      a chat, channel, or conversation on Telegram without requiring admin
      privileges.
    '';
    homepage = "https://github.com/en9inerd/tgeraser";
    changelog = "https://github.com/en9inerd/tgeraser/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.azahi ];
    mainProgram = "tgeraser";
  };
}