1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, pytestCheckHook 5, regex 6, wcwidth 7}: 8 9buildPythonPackage rec { 10 pname = "wikitextparser"; 11 version = "0.55.5"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "5j9"; 16 repo = "wikitextparser"; 17 rev = "v${version}"; 18 hash = "sha256-cmzyRbq4tCbuyrNnT0UYxoxuwXrFkIcWdrogSTfxSys="; 19 }; 20 21 propagatedBuildInputs = [ 22 wcwidth 23 regex 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "wikitextparser" ]; 31 32 meta = { 33 homepage = "https://github.com/5j9/wikitextparser"; 34 description = "A simple parsing tool for MediaWiki's wikitext markup"; 35 changelog = "https://github.com/5j9/wikitextparser/blob/v${version}/CHANGELOG.rst"; 36 license = lib.licenses.gpl3Only; 37 maintainers = with lib.maintainers; [ rapiteanu ]; 38 }; 39}