1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, pytest-runner
6}:
7
8buildPythonPackage rec {
9 pname = "mwparserfromhell";
10 version = "0.6.4";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-kr7JUorjTScok8yvK1J9+FwxT/KM+7MFY0BGewldg0w=";
15 };
16
17 checkInputs = [
18 pytestCheckHook
19 pytest-runner
20 ];
21
22 meta = with lib; {
23 description = "MWParserFromHell is a parser for MediaWiki wikicode";
24 homepage = "https://mwparserfromhell.readthedocs.io/en/latest/";
25 license = licenses.mit;
26 maintainers = with maintainers; [ melling ];
27 };
28}