tg: migrate to by-name

This commit is contained in:
Nikolay Korotkiy
2025-07-25 22:18:56 +04:00
parent 3b519806b9
commit 5601b10229
2 changed files with 5 additions and 11 deletions
@@ -1,20 +1,16 @@
{
lib,
buildPythonApplication,
fetchFromGitHub,
poetry-core,
pythonOlder,
python3Packages,
stdenv,
libnotify,
mailcap-fix,
python-telegram,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "tg";
version = "0.22.0";
pyproject = true;
disabled = pythonOlder "3.9";
disabled = python3Packages.pythonOlder "3.9";
src = fetchFromGitHub {
owner = "paul-nameless";
@@ -32,9 +28,9 @@ buildPythonApplication rec {
sed -i 's|^NOTIFY_CMD = .*|NOTIFY_CMD = "${libnotify}/bin/notify-send {title} {message} -i {icon_path}"|' tg/config.py
'';
build-system = [ poetry-core ];
build-system = [ python3Packages.poetry-core ];
dependencies = [
dependencies = with python3Packages; [
mailcap-fix
python-telegram
];
-2
View File
@@ -13861,8 +13861,6 @@ with pkgs;
stdenv = if stdenv.hostPlatform.isDarwin then llvmPackages_19.stdenv else stdenv;
};
tg = python3Packages.callPackage ../applications/networking/instant-messengers/telegram/tg { };
termdown = python3Packages.callPackage ../applications/misc/termdown { };
terminaltexteffects = with python3Packages; toPythonApplication terminaltexteffects;