1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "mwparserfromhell"; 10 version = "0.6.5"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-K60L/2FFdjmeRHDWQAuinFLVlWgqS43mQq+7W+v0o0Y="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace '"pytest-runner"' "" 23 ''; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ 30 "mwparserfromhell" 31 ]; 32 33 meta = with lib; { 34 description = "MWParserFromHell is a parser for MediaWiki wikicode"; 35 homepage = "https://mwparserfromhell.readthedocs.io/"; 36 changelog = "https://github.com/earwig/mwparserfromhell/releases/tag/v${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ melling ]; 39 }; 40}