From 43e6dae8a0366f15bb9e0e925ece16941139120b Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Thu, 30 Apr 2026 06:19:17 +0800 Subject: [PATCH 1/6] python3Packages.plover-dict-commands: init at 0.2.5 --- .../plover-dict-commands/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/plover-dict-commands/default.nix diff --git a/pkgs/development/python-modules/plover-dict-commands/default.nix b/pkgs/development/python-modules/plover-dict-commands/default.nix new file mode 100644 index 000000000000..68e7f0492937 --- /dev/null +++ b/pkgs/development/python-modules/plover-dict-commands/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + plover, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-dict-commands"; + # See https://pypi.org/project/plover-dict-commands/ + # and https://github.com/KoiOates/plover_dict_commands/issues/4 + version = "0.2.5"; + pyproject = true; + + src = fetchFromGitHub { + owner = "KoiOates"; + repo = "plover_dict_commands"; + rev = "5dceddc0830fb5a72679d62995f27b2e49850998"; + hash = "sha256-PXsYMqJz8sxgloEtiwxxt6Eo0hyFp5oW0homIAYPz6A="; + }; + + postPatch = '' + # See https://github.com/KoiOates/plover_dict_commands/issues/4 + substituteInPlace setup.cfg \ + --replace-fail "version = 0.2.4" "version = 0.2.5" + ''; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + plover + ]; + + pythonImportsCheck = [ + "plover_dict_commands" + ]; + + meta = { + description = "Plover plugin for enabling, disabling, and changing the priority of dictionaries"; + homepage = "https://github.com/KoiOates/plover_dict_commands"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 770ef1bcca24..6903928a725c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12668,6 +12668,8 @@ self: super: with self; { # https://github.com/opensteno/plover_plugins_registry/blob/master/unsupported.json plover = plover_4; + plover-dict-commands = callPackage ../development/python-modules/plover-dict-commands { }; + plover-stroke = callPackage ../development/python-modules/plover-stroke { }; plover_4 = callPackage ../development/python-modules/plover/4.nix { From e6eb178c41e1a278cc25d679fc670ab83b51133f Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Thu, 30 Apr 2026 08:40:13 +0800 Subject: [PATCH 2/6] python3Packages.plover-last-translation: init at 00.2 --- .../plover-last-translation/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/plover-last-translation/default.nix diff --git a/pkgs/development/python-modules/plover-last-translation/default.nix b/pkgs/development/python-modules/plover-last-translation/default.nix new file mode 100644 index 000000000000..7f7260565aac --- /dev/null +++ b/pkgs/development/python-modules/plover-last-translation/default.nix @@ -0,0 +1,42 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + plover, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-last-translation"; + version = "0.0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "nsmarkop"; + repo = "plover_last_translation"; + tag = finalAttrs.version; + hash = "sha256-G6IvJ/xkayqFR4D3LTPJae2qxRnDpUI0yKTEbtRUxUg="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + plover + ]; + + pythonImportsCheck = [ + "plover_last_translation" + ]; + + meta = { + description = "Plugins for Plover to repeat output"; + homepage = "https://github.com/nsmarkop/plover_last_translation"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6903928a725c..880f045b9101 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12670,6 +12670,8 @@ self: super: with self; { plover-dict-commands = callPackage ../development/python-modules/plover-dict-commands { }; + plover-last-translation = callPackage ../development/python-modules/plover-last-translation { }; + plover-stroke = callPackage ../development/python-modules/plover-stroke { }; plover_4 = callPackage ../development/python-modules/plover/4.nix { From e0a26f0ad6f2646070f464974b327562769e0929 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Thu, 30 Apr 2026 08:50:00 +0800 Subject: [PATCH 3/6] python3Packages.plover-modal-dictionary: init at 0.0.3 --- .../plover-modal-dictionary/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/plover-modal-dictionary/default.nix diff --git a/pkgs/development/python-modules/plover-modal-dictionary/default.nix b/pkgs/development/python-modules/plover-modal-dictionary/default.nix new file mode 100644 index 000000000000..78aa6ba8f4b2 --- /dev/null +++ b/pkgs/development/python-modules/plover-modal-dictionary/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + plover, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-modal-dictionary"; + # See https://pypi.org/project/plover-modal-dictionary/#history + # and https://github.com/Kaoffie/plover_modal_dictionary/issues/3 + version = "0.0.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Kaoffie"; + repo = "plover_modal_dictionary"; + rev = "086f9784377454ace45c333d21ea8ca2666b0a06"; + hash = "sha256-d5BYkjeGXfoYQibjr5wQFUmXU69dNrewkJ/Gi4c9eEI="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + plover + ]; + + pythonImportsCheck = [ + "plover_modal_dictionary" + ]; + + meta = { + description = "Modal Dictionaries for Plover"; + homepage = "https://github.com/Kaoffie/plover_modal_dictionary"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 880f045b9101..b6a4203f611b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12672,6 +12672,8 @@ self: super: with self; { plover-last-translation = callPackage ../development/python-modules/plover-last-translation { }; + plover-modal-dictionary = callPackage ../development/python-modules/plover-modal-dictionary { }; + plover-stroke = callPackage ../development/python-modules/plover-stroke { }; plover_4 = callPackage ../development/python-modules/plover/4.nix { From 6174a6280b758cdcf0def35d149c7dfa997e749d Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Thu, 30 Apr 2026 09:06:44 +0800 Subject: [PATCH 4/6] python3Packages.plover-python-dictionary: init at 1.2.1 --- .../plover-python-dictionary/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/plover-python-dictionary/default.nix diff --git a/pkgs/development/python-modules/plover-python-dictionary/default.nix b/pkgs/development/python-modules/plover-python-dictionary/default.nix new file mode 100644 index 000000000000..e453c61273ef --- /dev/null +++ b/pkgs/development/python-modules/plover-python-dictionary/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + pytestCheckHook, + plover, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-python-dictionary"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "opensteno"; + repo = "plover_python_dictionary"; + tag = finalAttrs.version; + hash = "sha256-4li8WjriJdeLbu+JANuVOb9ejBGusHBm+AaLxyy91A0="; + }; + + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + plover + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "plover_python_dictionary" + ]; + + meta = { + description = "Python dictionaries support for Plover"; + homepage = "https://github.com/opensteno/plover_python_dictionary"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b6a4203f611b..32dfd8d1d5c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12674,6 +12674,8 @@ self: super: with self; { plover-modal-dictionary = callPackage ../development/python-modules/plover-modal-dictionary { }; + plover-python-dictionary = callPackage ../development/python-modules/plover-python-dictionary { }; + plover-stroke = callPackage ../development/python-modules/plover-stroke { }; plover_4 = callPackage ../development/python-modules/plover/4.nix { From 2fcae69cac2cc6a4b0712f42d280c211985c9ac3 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 5 May 2026 15:32:36 +0800 Subject: [PATCH 5/6] python3Packages.plover-stiching: init at 0.1.0 --- .../plover-stitching/default.nix | 53 +++++++++++++++++++ ...est-blackbox_modernise_and_fix_build.patch | 31 +++++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 86 insertions(+) create mode 100644 pkgs/development/python-modules/plover-stitching/default.nix create mode 100644 pkgs/development/python-modules/plover-stitching/plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch diff --git a/pkgs/development/python-modules/plover-stitching/default.nix b/pkgs/development/python-modules/plover-stitching/default.nix new file mode 100644 index 000000000000..177dc5e88c4f --- /dev/null +++ b/pkgs/development/python-modules/plover-stitching/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + plover, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-stitching"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "panathea"; + repo = "plover_stitching"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Md3LIQ73CAJlA91hfVdZZp9RJElINHYfiFFBBOYrIgs="; + }; + + patches = [ + # Make plover-stitching's blackbox test use the current blackbox_test from Plover. + # https://github.com/panathea/plover_stitching/pull/1 + ./plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch + ]; + + build-system = [ + setuptools + ]; + + dependencies = [ + plover + ]; + + pythonImportsCheck = [ + "plover_stitching" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "S-t-i-t-c-h-i-n-g support for Plover"; + homepage = "https://github.com/panathea/plover_stitching"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/development/python-modules/plover-stitching/plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch b/pkgs/development/python-modules/plover-stitching/plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch new file mode 100644 index 000000000000..4b8f843521c9 --- /dev/null +++ b/pkgs/development/python-modules/plover-stitching/plover_stitching_pr-1_test-blackbox_modernise_and_fix_build.patch @@ -0,0 +1,31 @@ +From 2751875916f23d42c81602d082fa2fd06a396fb1 Mon Sep 17 00:00:00 2001 +From: Yueh-Shun Li +Date: Tue, 5 May 2026 16:34:28 +0800 +Subject: [PATCH] test_blackbox: modernize to fix build + +Use `@blackbox_test` (decorator) from `plover_build_utils.testing` +instead of the historical `BlackboxTester`. +--- + test/test_blackbox.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/test_blackbox.py b/test/test_blackbox.py +index 71eb6d0676e39e4e916b04ae9cc290dff3de9e02..e746705fe21174ac05ee3c6087f9a19171f68189 100644 +--- a/test/test_blackbox.py ++++ b/test/test_blackbox.py +@@ -1,12 +1,12 @@ +-from plover_build_utils.testing import BlackboxTester ++from plover_build_utils.testing import blackbox_test + from plover.registry import registry + from plover import system + +-class TestsBlackbox(BlackboxTester): ++@blackbox_test ++class TestsBlackbox: + + @classmethod + def setup_class(cls): +- super().setup_class() + registry.update() + system.setup('English Stenotype') + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 32dfd8d1d5c0..a9bee2be040e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12676,6 +12676,8 @@ self: super: with self; { plover-python-dictionary = callPackage ../development/python-modules/plover-python-dictionary { }; + plover-stitching = callPackage ../development/python-modules/plover-stitching { }; + plover-stroke = callPackage ../development/python-modules/plover-stroke { }; plover_4 = callPackage ../development/python-modules/plover/4.nix { From d47f39df07dbfdc8d350e79b20a431df9ab3a239 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 5 May 2026 17:12:35 +0800 Subject: [PATCH 6/6] plover-lapwing-aio: init at 1.5.0 --- .../plover-lapwing-aio/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/plover-lapwing-aio/default.nix diff --git a/pkgs/development/python-modules/plover-lapwing-aio/default.nix b/pkgs/development/python-modules/plover-lapwing-aio/default.nix new file mode 100644 index 000000000000..b181da5723ce --- /dev/null +++ b/pkgs/development/python-modules/plover-lapwing-aio/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + plover-dict-commands, + plover-last-translation, + plover-modal-dictionary, + plover-python-dictionary, + plover-stitching, +}: + +buildPythonPackage (finalAttrs: { + pname = "plover-lapwing-aio"; + version = "1.5.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "aerickt"; + repo = "plover-lapwing-aio"; + tag = "v${finalAttrs.version}"; + hash = "sha256-+zXsbXwOtnj3feWdBujIYs7MdbB7VV3VWyio8CeJtB4="; + }; + + postPatch = '' + substituteInPlace setup.cfg \ + --replace-fail "setuptools<77" "setuptools" + ''; + + build-system = [ + setuptools + ]; + + dependencies = [ + plover-dict-commands + plover-last-translation + plover-modal-dictionary + plover-python-dictionary + plover-stitching + ]; + + pythonImportsCheck = [ + "plover_lapwing" + ]; + + meta = { + description = "Plover plugin to automatically install Lapwing dictionaries, dependent plugins, extra dictionaries, and fix the number key behaviour"; + homepage = "https://github.com/aerickt/plover-lapwing-aio"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + pandapip1 + ShamrockLee + ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a9bee2be040e..7adccd279d6d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12670,6 +12670,8 @@ self: super: with self; { plover-dict-commands = callPackage ../development/python-modules/plover-dict-commands { }; + plover-lapwing-aio = callPackage ../development/python-modules/plover-lapwing-aio { }; + plover-last-translation = callPackage ../development/python-modules/plover-last-translation { }; plover-modal-dictionary = callPackage ../development/python-modules/plover-modal-dictionary { };