From 86447dd8faeae5a16ce6513698f74bd237d83662 Mon Sep 17 00:00:00 2001 From: aleksana Date: Fri, 1 Mar 2024 18:42:34 +0800 Subject: [PATCH 1/3] dialect: 2.1.1 -> 2.2.0 --- pkgs/applications/misc/dialect/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/dialect/default.nix b/pkgs/applications/misc/dialect/default.nix index 519f12490f18..9ea194a24cf4 100644 --- a/pkgs/applications/misc/dialect/default.nix +++ b/pkgs/applications/misc/dialect/default.nix @@ -13,24 +13,33 @@ , gobject-introspection , gst_all_1 , libsoup_3 +, glib-networking , libadwaita , nix-update-script }: python3.pkgs.buildPythonApplication rec { pname = "dialect"; - version = "2.1.1"; + version = "2.2.0"; format = "other"; src = fetchFromGitHub { owner = "dialect-app"; - repo = pname; + repo = "dialect"; rev = version; fetchSubmodules = true; - hash = "sha256-ytZnolQTOj0dpv+ouN1N7sypr1LxSN/Uhp7qP0ZOTHE="; + hash = "sha256-+0qA+jFYrK3K3mJNvxTvnT/3q4c51H0KgEMjzvV34Zs="; }; + # FIXME: remove in next release + postPatch = '' + substituteInPlace dialect/providers/lingva.py \ + --replace-fail 'lingva.ml' 'lingva.dialectapp.org' + substituteInPlace dialect/providers/libretrans.py \ + --replace-fail 'libretranslate.de' 'lt.dialectapp.org' + ''; + nativeBuildInputs = [ appstream-glib blueprint-compiler @@ -47,7 +56,9 @@ python3.pkgs.buildPythonApplication rec { glib gst_all_1.gstreamer gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good libsoup_3 + glib-networking libadwaita ]; @@ -55,6 +66,7 @@ python3.pkgs.buildPythonApplication rec { dbus-python gtts pygobject3 + beautifulsoup4 ]; # Prevent double wrapping, let the Python wrapper use the args in preFixup. @@ -76,6 +88,7 @@ python3.pkgs.buildPythonApplication rec { description = "A translation app for GNOME"; maintainers = with maintainers; [ linsui ]; license = licenses.gpl3Plus; + mainProgram = "dialect"; platforms = platforms.linux; }; } From 699dec5ffee2b1720b24633c38bf608437ef282b Mon Sep 17 00:00:00 2001 From: aleksana Date: Fri, 1 Mar 2024 18:42:56 +0800 Subject: [PATCH 2/3] dialect: add aleksana as maintainer --- pkgs/applications/misc/dialect/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/dialect/default.nix b/pkgs/applications/misc/dialect/default.nix index 9ea194a24cf4..2e73b9f2d005 100644 --- a/pkgs/applications/misc/dialect/default.nix +++ b/pkgs/applications/misc/dialect/default.nix @@ -86,7 +86,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { homepage = "https://github.com/dialect-app/dialect"; description = "A translation app for GNOME"; - maintainers = with maintainers; [ linsui ]; + maintainers = with maintainers; [ linsui aleksana ]; license = licenses.gpl3Plus; mainProgram = "dialect"; platforms = platforms.linux; From cf4167932d6fffd22041f0038ceb21476fe96048 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 2 Mar 2024 14:57:36 +0800 Subject: [PATCH 3/3] dialect: remove linsui from maintainers --- pkgs/applications/misc/dialect/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/dialect/default.nix b/pkgs/applications/misc/dialect/default.nix index 2e73b9f2d005..1edf76e1e987 100644 --- a/pkgs/applications/misc/dialect/default.nix +++ b/pkgs/applications/misc/dialect/default.nix @@ -86,7 +86,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { homepage = "https://github.com/dialect-app/dialect"; description = "A translation app for GNOME"; - maintainers = with maintainers; [ linsui aleksana ]; + maintainers = with maintainers; [ aleksana ]; license = licenses.gpl3Plus; mainProgram = "dialect"; platforms = platforms.linux;