Files
nixpkgs/pkgs/development/python-modules/mwparserfromhell/default.nix
T
2025-12-17 02:30:09 +01:00

44 lines
892 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "mwparserfromhell";
version = "0.7.2";
pyproject = true;
src = fetchFromGitHub {
owner = "earwig";
repo = "mwparserfromhell";
tag = "v${version}";
hash = "sha256-yPj272bMh/pLapc7lDgP4+AnDBpE2FrDICRUxizIcSA=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mwparserfromhell" ];
meta = {
description = "Parser for MediaWiki wikicode";
homepage = "https://mwparserfromhell.readthedocs.io/";
changelog = "https://github.com/earwig/mwparserfromhell/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}