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(
python_requires=">=3.6",
install_requires=[
"beautifulsoup4>=4.9.0",
++ "click",
"pandas>=1.1.1",
"requests>=2.23.0",
"tqdm>=4.46.0",
++ "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:
# check validity of arguments
self._check_table_name_validity()
+- self._check_language_codes_validity()
++ #self._check_language_codes_validity()
# unlike other cases, the links from sentences in one language to
# sentences in every language are not loaded from a bilingual
application/octet-stream
This content has been proxied by September (3851b).