diff --git a/pkgs/tools/dict/tatoebatools/cli.patch b/pkgs/tools/dict/tatoebatools/cli.patch

new file mode 100644

index 0000000000000000000000000000000000000000..7877d948c1f028e06f5c8acdef952590afb4d22b

--- /dev/null

+++ b/pkgs/tools/dict/tatoebatools/cli.patch

@@ -0,0 +1,35 @@

+diff --git c/setup.py i/setup.py

+index ea690f5..9f316c2 100644

+--- c/setup.py

++++ i/setup.py

+@@ -21,8 +21,11 @@ setuptools.setup(

++ "click",

++ "xdg"

++ entry_points={"console_scripts": "parallel_corpus=tatoebatools.cli:parallel_corpus"},

+diff --git c/tatoebatools/cli.py i/tatoebatools/cli.py

+new file mode 100644

+index 0000000..f128aec

+--- /dev/null

++++ i/tatoebatools/cli.py

+@@ -0,0 +1,13 @@

++import click

++from xdg import XDG_DATA_HOME

++from tatoebatools import ParallelCorpus, tatoeba

++

++tatoeba.dir = XDG_DATA_HOME / "tatoebatools"

++

++@click.command(short_help="Parallel corpus")

++@click.argument('source_language')

++@click.argument('target_language')

++@click.option('--update', type=click.BOOL, default=False)

++def parallel_corpus(source_language, target_language, update):

++ for sentence, translation in ParallelCorpus(source_language, target_language, update):

++ print("%s\t%s" % (sentence.text, translation.text));

diff --git a/pkgs/tools/dict/tatoebatools/default.nix b/pkgs/tools/dict/tatoebatools/default.nix

index 842bd11c40ccbab15f849b6f556388cd30047df1..b146739cd5b43bb9da5e7252cb915a21d15f636c 100644

--- a/pkgs/tools/dict/tatoebatools/default.nix

+++ b/pkgs/tools/dict/tatoebatools/default.nix

@@ -1,4 +1,4 @@

-{ lib, python3Packages, sources, withCli ? true }:

+{ lib, python3Packages, sources, withCli ? true, checkLang ? false }:

python3Packages.buildPythonApplication {

pname = "tatoebatools-unstable";

@@ -6,17 +6,17 @@ version = lib.substring 0 10 sources.tatoebatools.date;

src = sources.tatoebatools;

checkInputs = with python3Packages; [ pytestCheckHook ];

];

meta = with lib; {

diff --git a/pkgs/tools/dict/tatoebatools/dont-check-lang-validity.patch b/pkgs/tools/dict/tatoebatools/dont-check-lang-validity.patch

new file mode 100644

index 0000000000000000000000000000000000000000..e100bfd160eb2d9dca5ba6a613a4c613bc256e13

--- /dev/null

+++ b/pkgs/tools/dict/tatoebatools/dont-check-lang-validity.patch

@@ -0,0 +1,13 @@

+diff --git i/tatoebatools/table.py w/tatoebatools/table.py

+index f900fd4..fd445fb 100644

+--- i/tatoebatools/table.py

++++ w/tatoebatools/table.py

+@@ -74,7 +74,7 @@ class Table:

+- self._check_language_codes_validity()

++ #self._check_language_codes_validity()

Proxy Information
Original URL
gemini://git.sikmir.ru/nur-packages/commits/3b4fb2c996a41dbbf89e252f52cbc4086ea7866b.patch
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
135.305189 milliseconds
Gemini-to-HTML Time
3.18707 milliseconds

This content has been proxied by September (3851b).