commit 457b4dd8d4066c1cf26d963fd16695178a56f0ea parent 508f44c6dad0b0e205ba1633f41f3d1adcc502ee Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sun, 3 Oct 2021 20:32:17 +0300 Add revtok Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/linguistics/revtok/default.nix | | | 24 | ++++++++++++++++++++++++ |
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -238,6 +238,7 @@ lib.makeScope newScope ( opendict = callPackage ./linguistics/opendict { }; python-hfst = callPackage ./linguistics/python-hfst { }; redict = libsForQt5.callPackage ./linguistics/redict { }; + revtok = callPackage ./linguistics/revtok { }; stardict-tools = callPackage ./linguistics/stardict-tools { }; tatoebatools = callPackage ./linguistics/tatoebatools { }; wikitextprocessor = callPackage ./linguistics/wikitextprocessor { }; diff --git a/pkgs/linguistics/revtok/default.nix b/pkgs/linguistics/revtok/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "revtok"; + version = "2018-09-21"; + + src = fetchFromGitHub { + owner = "jekbradbury"; + repo = pname; + rev = "f1998b72a941d1e5f9578a66dc1c20b01913caab"; + hash = "sha256-o416UUnTMejCd57fGvZPSFQv0bT4PULdgNTXyAzMiMs="; + }; + + propagatedBuildInputs = with python3Packages; [ tqdm ]; + + pythonImportsCheck = [ "revtok" ]; + + meta = with lib; { + description = "Reversible tokenization in Python"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}