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