Merge pull request #236735 from fabaff/mwparserfromhell-pytest-runner
python311Packages.mwparserfromhell: remove pytest-runner
This commit is contained in:
commit
8c90560d8c
1 changed files with 15 additions and 3 deletions
|
@ -2,26 +2,38 @@
|
|||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pytest-runner
|
||||
, 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
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"mwparserfromhell"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MWParserFromHell is a parser for MediaWiki wikicode";
|
||||
homepage = "https://mwparserfromhell.readthedocs.io/en/latest/";
|
||||
homepage = "https://mwparserfromhell.readthedocs.io/";
|
||||
changelog = "https://github.com/earwig/mwparserfromhell/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ melling ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue