python3Packages.plover: reference to python3Packages.plover_5 instead of python3Packages.plover_4 (#517601)

This commit is contained in:
Yueh-Shun Li
2026-06-01 16:16:52 +00:00
committed by GitHub
2 changed files with 11 additions and 7 deletions
+4 -3
View File
@@ -3,7 +3,7 @@
config,
python3Packages,
# For aliases
plover,
plover_4,
}:
python3Packages.toPythonApplication python3Packages.plover
# Aliases to now-dropped plover.stable and plover.dev
@@ -11,7 +11,8 @@ python3Packages.toPythonApplication python3Packages.plover
# TODO(@ShamrockLee): remove after Nixpkgs 25.11 EOL
// lib.optionalAttrs (config.allowAliases && !(lib.oldestSupportedReleaseIsAtLeast 2605)) {
dev =
lib.throwIf (lib.oldestSupportedReleaseIsAtLeast 2511) "plover.dev was renamed. Use plover instead."
plover; # Added 2026-04-26
lib.throwIf (lib.oldestSupportedReleaseIsAtLeast 2511)
"plover.dev was renamed. Use plover, plover_5, or plover_4 instead."
plover_4; # Added 2026-05-07
stable = throw "plover.stable was renamed. Use plover instead."; # Added 2022-06-05; updated 2026-04-26
}
+7 -4
View File
@@ -12812,13 +12812,16 @@ self: super: with self; {
plotpy = callPackage ../development/python-modules/plotpy { };
# Use Plover 5 as Plover 4 depends on setuptool's pkg_resources to discover plugins,
# which the setuptools upstream deprecated at version 81.0.0 and removed at version 82.0.0
# Plover 5 has addressed this issue by switching to importlib.meta.distributions()
#
# NOTE:
# Plover 5 moves from PyQt5 to PySide6,
# which is a backward-incompatible change to praphical plugins.
# Use Plover 4 for now (2026-04-26),
# as the upstream still warns about this in every Plover 5 release,
# which is a backward-incompatible change to graphical plugins.
# List of unsupported plugins:
# https://github.com/opensteno/plover_plugins_registry/blob/master/unsupported.json
plover = plover_4;
plover = plover_5;
plover-dict-commands = callPackage ../development/python-modules/plover-dict-commands { };