m2r: use toPythonApplication
This commit is contained in:
parent
243053e521
commit
eb642f80f9
@ -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";
|
||||
};
|
||||
|
@ -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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user