default.nix (906B)
1 { lib, fetchFromGitHub, fetchpatch, python3Packages }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "telegram-send"; 5 version = "0-unstable-2023-10-07"; 6 7 src = fetchFromGitHub { 8 owner = "rahiel"; 9 repo = "telegram-send"; 10 rev = "38cd39fb0eac6c58e886c11706ae39f58991af55"; 11 hash = "sha256-DeEz1cVor2GBoQrDIHNWr5IYnPgBsTWr5xMuSM38MBw="; 12 }; 13 14 postPatch = '' 15 substituteInPlace setup.py \ 16 --replace-fail "python-telegram-bot==20.6" "python-telegram-bot" 17 ''; 18 19 nativeBuildInputs = with python3Packages; [ pip ]; 20 21 propagatedBuildInputs = with python3Packages; [ appdirs colorama python-telegram-bot ]; 22 23 doCheck = false; 24 25 meta = with lib; { 26 description = "Send messages and files over Telegram from the command-line"; 27 homepage = "https://www.rahielkasim.com/telegram-send/"; 28 license = licenses.gpl3Plus; 29 maintainers = [ maintainers.sikmir ]; 30 }; 31 }