m2r: drop as it was marked broken for 4 years

This commit is contained in:
Sandro Jäckel
2026-05-27 00:56:14 +02:00
parent ff09a8b1ac
commit e18ede29fe
6 changed files with 2 additions and 69 deletions

View File

@@ -1,50 +0,0 @@
{
lib,
buildPythonPackage,
fetchpatch,
fetchPypi,
docutils,
mistune,
pygments,
}:
buildPythonPackage rec {
pname = "m2r";
version = "0.3.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-qvtn/EnPsdieRqNEOsdH4V9LtC3yDtBPBnrZ777iVqs=";
};
patches = [
# fix tests in python 3.10
(fetchpatch {
url = "https://github.com/miyakogi/m2r/commit/58ee9cabdadf5e3deb13037f3052238f0f2bffcd.patch";
hash = "sha256-CN3PWmnk7xsn1wngRHuEWmDTP3HtVNxkFv0xzD2Zjlo=";
})
./docutils-0.19-compat.patch
];
postPatch = ''
substituteInPlace tests/test_cli.py \
--replace "optional" "positional"
'';
propagatedBuildInputs = [
mistune
docutils
];
nativeCheckInputs = [ pygments ];
meta = {
homepage = "https://github.com/miyakogi/m2r";
description = "Markdown to reStructuredText converter";
license = lib.licenses.mit;
maintainers = [ ];
# https://github.com/miyakogi/m2r/issues/66
broken = lib.versionAtLeast mistune.version "2";
};
}

View File

@@ -1,15 +0,0 @@
diff --git a/m2r.py b/m2r.py
index a4e43c2..fb9e588 100644
--- a/m2r.py
+++ b/m2r.py
@@ -10,8 +10,8 @@ from argparse import ArgumentParser, Namespace
from docutils import statemachine, nodes, io, utils
from docutils.parsers import rst
-from docutils.core import ErrorString
-from docutils.utils import SafeString, column_width
+from docutils.utils.error_reporting import ErrorString, SafeString
+from docutils.utils import column_width
import mistune
if sys.version_info < (3, ):

View File

@@ -1380,6 +1380,7 @@ mapAliases {
lxde.lxtask = throw "'lxtask' has been moved to top-level. Use 'lxtask' directly"; # Added 2025-08-31
lxdvdrip = throw "'lxdvdrip' has been removed due to lack of upstream maintenance."; # Added 2025-06-09
LycheeSlicer = warnAlias "'LycheeSlicer' has been renamed to 'lycheeslicer'" lycheeslicer; # Added 2026-02-08
m2r = throw "'m2r' has been removed because it was marked broken for a long time."; # Added 2026-05-27
mac = throw "'mac' has been renamed to/replaced by 'monkeysAudio'"; # Converted to throw 2025-10-27
MACS2 = throw "'MACS2' has been renamed to/replaced by 'macs2'"; # Converted to throw 2025-10-27
magma_2_6_2 = throw "'magma_2_6_2' has been removed, use the latest 'magma' package instead."; # Added 2025-07-20

View File

@@ -2640,8 +2640,6 @@ with pkgs;
maubot = with python3Packages; toPythonApplication maubot;
m2r = with python3Packages; toPythonApplication m2r;
md2gemini = with python3.pkgs; toPythonApplication md2gemini;
mdcat = callPackage ../tools/text/mdcat {

View File

@@ -328,6 +328,7 @@ mapAliases {
lsprotocol_2025 = lsprotocol; # added 2026-01-05
lxml-stubs = throw "'lxml-stubs' has been removed as it was broken and unmaintained upstream. Consider using 'types-lxml' instead."; # Converted to throw 2025-11-07
lzstring = throw "'lzstring' has been removed as it was unmaintained upstream"; # Added 2025-11-22
m2r = throw "'m2r' has been removed because it was marked broken for a long time."; # Added 2026-05-27
mac_alias = throw "'mac_alias' has been renamed to/replaced by 'mac-alias'"; # Converted to throw 2025-10-29
macropy = throw "macropy has been removed as it was broken since 2020"; # added 2025-10-04
Mako = throw "'Mako' has been renamed to/replaced by 'mako'"; # Converted to throw 2025-10-29

View File

@@ -9518,8 +9518,6 @@ self: super: with self; {
m2crypto = callPackage ../development/python-modules/m2crypto { };
m2r = callPackage ../development/python-modules/m2r { };
m3u8 = callPackage ../development/python-modules/m3u8 { };
mac-alias = callPackage ../development/python-modules/mac-alias { };