Unverified Commit 158756b2 authored by Théo Bori's avatar Théo Bori Committed by Théo Bori
Browse files

python3Packages.wiktextract: init at 1.99.7-unstable-2026-03-26

parent f750dd7e
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  levenshtein,
  nltk,
  pydantic,
  wikitextprocessor,
  unstableGitUpdater,
}:

buildPythonPackage {
  pname = "wiktextract";
  version = "1.99.7-unstable-2026-03-26";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tatuylonen";
    repo = "wiktextract";
    rev = "f47b8fc87a0e17f4dcca68f534e73f4c6fa8e8e7";
    hash = "sha256-U9Xm3vRAvONN/DwyhEEM54eiBnv7JKAEXPolK9HfJU8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    levenshtein
    nltk
    pydantic
    wikitextprocessor
  ];

  # It requires Internet
  doCheck = false;

  pythonImportsCheck = [ "wiktextract" ];

  passthru.updateScript = unstableGitUpdater { };

  meta = {
    description = "Wiktionary dump file parser and multilingual data extractor";
    homepage = "https://github.com/tatuylonen/wiktextract";
    license = with lib.licenses; [
      mit
      cc-by-sa-40 # Needed for certain test files under Wiktionary licence
    ];
    maintainers = with lib.maintainers; [ theobori ];
    mainProgram = "wiktwords";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -21067,6 +21067,8 @@ self: super: with self; {
  wikitextprocessor = callPackage ../development/python-modules/wikitextprocessor { };
  wiktextract = callPackage ../development/python-modules/wiktextract { };
  willow = callPackage ../development/python-modules/willow { };
  winacl = callPackage ../development/python-modules/winacl { };