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

python310Packages.mistune: 0.8.4 -> 2.0.4

Remove mistune_0_8 because it's insecure.
parent 9f1da18a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ in rec {
            inherit self;
            includeSiteCustomize = true;
           });
         in self.withPackages (p: [ p.mistune_2_0 ]))
         in self.withPackages (p: [ p.mistune ]))
      ];
      options = builtins.toFile "options.json"
        (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));
+2 −0
Original line number Diff line number Diff line
@@ -39,5 +39,7 @@ buildPythonPackage rec {
    description = "Markdown to reStructuredText converter";
    license = licenses.mit;
    maintainers = with maintainers; [ SuperSandro2000 ];
    # https://github.com/miyakogi/m2r/issues/66
    broken = versionAtLeast mistune.version "2";
  };
}
+2 −2
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, mistune_2_0, cjkwrap, wcwidth
{ lib, buildPythonPackage, fetchPypi, mistune, cjkwrap, wcwidth
, pytestCheckHook }:

buildPythonPackage rec {
  pname = "md2gemini";
  version = "1.9.0";

  propagatedBuildInputs = [ mistune_2_0 cjkwrap wcwidth ];
  propagatedBuildInputs = [ mistune cjkwrap wcwidth ];
  checkInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "md2gemini" ];

+0 −27
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, nose
, version
, sha256
, format ? "setuptools"
, extraMeta ? {}
}:

buildPythonPackage rec {
  inherit version format;
  pname = "mistune";

  src = fetchPypi {
    inherit pname version sha256;
  };

  buildInputs = [ nose ];
  pythonImportsCheck = [ "mistune" ];

  meta = with lib; {
    description = "The fastest markdown parser in pure Python";
    homepage = "https://github.com/lepture/mistune";
    license = licenses.bsd3;
  } // extraMeta;
}
+27 −12
Original line number Diff line number Diff line
self: rec {
  mistune_0_8 = self.callPackage ./common.nix {
    version = "0.8.4";
    sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
    extraMeta = {
      knownVulnerabilities = [ "CVE-2022-34749" ];
    };
  };
  mistune_2_0 = self.callPackage ./common.nix {
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "mistune";
  version = "2.0.4";
    sha256 = "sha256-nuCmYFPiJnq6dyxx4GiR+o8a9tSwHV6E4me0Vw1NmAg=";

  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9ee0a66053e2267aba772c71e06891fa8f1af6d4b01d5e84e267b4570d4d9808";
  };

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "mistune" ];

  meta = with lib; {
    description = "A sane Markdown parser with useful plugins and renderers";
    homepage = "https://github.com/lepture/mistune";
    license = licenses.bsd3;
    maintainers = with maintainers; [ dotlambda ];
  };
  mistune = mistune_0_8;
}
Loading