m2r: use toPythonApplication

This commit is contained in:
Robert Schütz 2022-08-12 11:37:14 +00:00 committed by Robert Schütz
parent 243053e521
commit eb642f80f9
3 changed files with 2 additions and 34 deletions

View File

@ -38,7 +38,7 @@ buildPythonPackage rec {
homepage = "https://github.com/miyakogi/m2r";
description = "Markdown to reStructuredText converter";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
maintainers = with maintainers; [ AndersonTorres SuperSandro2000 ];
# https://github.com/miyakogi/m2r/issues/66
broken = versionAtLeast mistune.version "2";
};

View File

@ -1,32 +0,0 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, docutils
, mistune
, pygments
}:
buildPythonApplication rec {
pname = "m2r";
version = "0.2.1";
src = fetchFromGitHub {
owner = "miyakogi";
repo = pname;
rev = "v${version}";
hash = "sha256-JNLPEXMoiISh4RnKP+Afj9/PJp9Lrx9UYHsfuGAL7uI=";
};
buildInputs = [
docutils
mistune
pygments
];
meta = with lib; {
homepage = "https://github.com/miyakogi/m2r";
description = "Markdown-to-RestructuredText converter";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
};
}

View File

@ -8076,7 +8076,7 @@ with pkgs;
mcfly = callPackage ../tools/misc/mcfly { };
m2r = python3Packages.callPackage ../tools/text/m2r { };
m2r = with python3Packages; toPythonApplication m2r;
md2gemini = with python3.pkgs; toPythonApplication md2gemini;