From da44631afc40ebfe47730e9b442688c2fb30dca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Thu, 6 Jul 2023 17:13:52 +0100 Subject: [PATCH] add plover-python-dictionary --- default.nix | 1 + flake.nix | 1 + overlay.nix | 1 + plover/plover-python-dictionary.nix | 28 ++++++++++++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 plover/plover-python-dictionary.nix diff --git a/default.nix b/default.nix index 4e8f38b..b543502 100644 --- a/default.nix +++ b/default.nix @@ -73,6 +73,7 @@ in wordpress-themes kubo fcitx5 + plover-plugin-python-dictionary ; } // ( diff --git a/flake.nix b/flake.nix index 445825a..b5e99d7 100644 --- a/flake.nix +++ b/flake.nix @@ -117,6 +117,7 @@ hydra hydra-unstable fcitx5 + plover-plugin-python-dictionary ; } // ( diff --git a/overlay.nix b/overlay.nix index d457702..e753e8f 100644 --- a/overlay.nix +++ b/overlay.nix @@ -94,6 +94,7 @@ system: self: super: let plover-plugin-emoji = self.python3Packages.callPackage ./plover/plover-emoji.nix {}; plover-plugin-tapey-tape = self.python3Packages.callPackage ./plover/plover-tapey-tape.nix {}; plover-plugin-yaml-dictionary = self.python3Packages.callPackage ./plover/plover-yaml-dictionary.nix {}; + plover-plugin-python-dictionary = self.python3Packages.callPackage ./plover/plover-python-dictionary.nix {}; plover-plugin-machine-hid = self.python3Packages.callPackage ./plover/plover-machine-hid.nix {}; plover-plugin-rkb1-hid = self.python3Packages.callPackage ./plover/plover-rkb1-hid.nix {}; plover-dict-didoesdigital = self.callPackage ./plover/didoesdigital-dictionary.nix {}; diff --git a/plover/plover-python-dictionary.nix b/plover/plover-python-dictionary.nix new file mode 100644 index 0000000..3de312f --- /dev/null +++ b/plover/plover-python-dictionary.nix @@ -0,0 +1,28 @@ +{ + callPackage, + buildPythonPackage, + fetchPypi, + lib, + pythonOlder, +}: let + plover = callPackage ./plover {}; +in + buildPythonPackage rec { + pname = "plover_python_dictionary"; + version = "1.1.0"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-YlHTmMtKWUadObGbsrsF+PUspCB4Kr+amy57DQ4eCQs="; + }; + + doCheck = false; + + disabled = pythonOlder "3.6"; + propagatedBuildInputs = [plover]; + + meta = with lib; { + description = "Python dictionary support for Plover."; + license = licenses.gpl3Plus; + }; + passthru.updateScript = [../scripts/update-python-libraries "plover/plover-python-dictionary.nix"]; + }