depot/third_party/nixpkgs/pkgs/development/python-modules/mwparserfromhell/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

40 lines
851 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mwparserfromhell";
version = "0.6.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kr7JUorjTScok8yvK1J9+FwxT/KM+7MFY0BGewldg0w=";
};
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 ];
};
}