summaryrefslogtreecommitdiff
path: root/pkgs/plover/rtf_tokenize.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/plover/rtf_tokenize.nix')
-rw-r--r--pkgs/plover/rtf_tokenize.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/plover/rtf_tokenize.nix b/pkgs/plover/rtf_tokenize.nix
new file mode 100644
index 0000000..805845f
--- /dev/null
+++ b/pkgs/plover/rtf_tokenize.nix
@@ -0,0 +1,33 @@
+{
+ lib,
+ buildPythonPackage,
+ fetchFromGitHub,
+ setuptools,
+ pytestCheckHook,
+}:
+
+buildPythonPackage rec {
+ pname = "rtf-tokenize";
+ version = "1.0.0";
+ pyproject = true;
+
+ src = fetchFromGitHub {
+ owner = "openstenoproject";
+ repo = "rtf_tokenize";
+ tag = version;
+ hash = "sha256-zwD2sRYTY1Kmm/Ag2hps9VRdUyQoi4zKtDPR+F52t9A=";
+ };
+
+ build-system = [ setuptools ];
+
+ nativeCheckInputs = [ pytestCheckHook ];
+
+ pythonImportsCheck = [ "rtf_tokenize" ];
+
+ meta = {
+ description = "Simple RTF tokenizer package for Python";
+ homepage = "https://github.com/openstenoproject/rtf_tokenize";
+ license = lib.licenses.gpl2Plus; # https://github.com/openstenoproject/rtf_tokenize/issues/1
+ maintainers = with lib.maintainers; [ pandapip1 ];
+ };
+}