Commit eb642f80 authored by Robert Schütz's avatar Robert Schütz Committed by Robert Schütz
Browse files

m2r: use toPythonApplication

parent 243053e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";
  };

pkgs/tools/text/m2r/default.nix

deleted100644 → 0
+0 −32
Original line number Diff line number Diff line
{ 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 ];
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -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;