fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
846 B
Nix
37 lines
846 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mwparserfromhell";
|
|
version = "0.6.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ca/sHpeEulduldbzSEVYLTxzOjpSuncN2KnDpA5bZJ8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"pytest-runner"' ""
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mwparserfromhell" ];
|
|
|
|
meta = with lib; {
|
|
description = "MWParserFromHell is a parser for MediaWiki wikicode";
|
|
homepage = "https://mwparserfromhell.readthedocs.io/";
|
|
changelog = "https://github.com/earwig/mwparserfromhell/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|