python3Packages.wikitextprocessor: init at 0.4.96-unstable-2026-03-06

This commit is contained in:
Théo Bori
2026-03-28 16:07:08 +01:00
committed by Théo Bori
parent 595e53600f
commit f750dd7e14
2 changed files with 70 additions and 0 deletions
@@ -0,0 +1,68 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
dateparser,
lupa,
lxml,
mediawiki-langcodes,
psutil,
requests,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage {
pname = "wikitextprocessor";
version = "0.4.96-unstable-2026-03-06";
pyproject = true;
src = fetchFromGitHub {
owner = "tatuylonen";
repo = "wikitextprocessor";
fetchSubmodules = true;
rev = "9d9a410c45c06d30239bcc0d8c1a57718a3f7a2c";
hash = "sha256-qhl9yRF2MUQvKXgcuxu20h6cEQofN1xMMb4JJZcFHS0=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "dateparser" ];
dependencies = [
dateparser
lupa
lxml
mediawiki-langcodes
psutil
requests
];
pythonImportsCheck = [ "wikitextprocessor" ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# It requires Internet
"test_process_dump"
# It attempts to write a readonly database
"test_fetchlanguage"
"test_language_parser_function"
];
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support";
homepage = "https://github.com/tatuylonen/wikitextprocessor";
license = with lib.licenses; [
mit
cc-by-sa-40 # Needed for certain test files under Wiktionary licence
gpl2Plus # Needed for certain files in lua/mediawiki-extensions-Scribunto/
];
maintainers = with lib.maintainers; [ theobori ];
};
}
+2
View File
@@ -21065,6 +21065,8 @@ self: super: with self; {
wikitextparser = callPackage ../development/python-modules/wikitextparser { };
wikitextprocessor = callPackage ../development/python-modules/wikitextprocessor { };
willow = callPackage ../development/python-modules/willow { };
winacl = callPackage ../development/python-modules/winacl { };