mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python310Packages.mistune: 0.8.4 -> 2.0.4
Remove mistune_0_8 because it's insecure.
This commit is contained in:
parent
9f1da18a1e
commit
243053e521
11 changed files with 41 additions and 52 deletions
|
@ -123,7 +123,7 @@ in rec {
|
||||||
inherit self;
|
inherit self;
|
||||||
includeSiteCustomize = true;
|
includeSiteCustomize = true;
|
||||||
});
|
});
|
||||||
in self.withPackages (p: [ p.mistune_2_0 ]))
|
in self.withPackages (p: [ p.mistune ]))
|
||||||
];
|
];
|
||||||
options = builtins.toFile "options.json"
|
options = builtins.toFile "options.json"
|
||||||
(builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));
|
(builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix));
|
||||||
|
|
|
@ -39,5 +39,7 @@ buildPythonPackage rec {
|
||||||
description = "Markdown to reStructuredText converter";
|
description = "Markdown to reStructuredText converter";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
# https://github.com/miyakogi/m2r/issues/66
|
||||||
|
broken = versionAtLeast mistune.version "2";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, mistune_2_0, cjkwrap, wcwidth
|
{ lib, buildPythonPackage, fetchPypi, mistune, cjkwrap, wcwidth
|
||||||
, pytestCheckHook }:
|
, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "md2gemini";
|
pname = "md2gemini";
|
||||||
version = "1.9.0";
|
version = "1.9.0";
|
||||||
|
|
||||||
propagatedBuildInputs = [ mistune_2_0 cjkwrap wcwidth ];
|
propagatedBuildInputs = [ mistune cjkwrap wcwidth ];
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
pythonImportsCheck = [ "md2gemini" ];
|
pythonImportsCheck = [ "md2gemini" ];
|
||||||
|
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
{ 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;
|
|
||||||
}
|
|
|
@ -1,15 +1,30 @@
|
||||||
self: rec {
|
{ lib
|
||||||
mistune_0_8 = self.callPackage ./common.nix {
|
, buildPythonPackage
|
||||||
version = "0.8.4";
|
, fetchPypi
|
||||||
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
|
, pytestCheckHook
|
||||||
extraMeta = {
|
}:
|
||||||
knownVulnerabilities = [ "CVE-2022-34749" ];
|
|
||||||
};
|
buildPythonPackage rec {
|
||||||
|
pname = "mistune";
|
||||||
|
version = "2.0.4";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "9ee0a66053e2267aba772c71e06891fa8f1af6d4b01d5e84e267b4570d4d9808";
|
||||||
};
|
};
|
||||||
mistune_2_0 = self.callPackage ./common.nix {
|
|
||||||
version = "2.0.4";
|
checkInputs = [
|
||||||
sha256 = "sha256-nuCmYFPiJnq6dyxx4GiR+o8a9tSwHV6E4me0Vw1NmAg=";
|
pytestCheckHook
|
||||||
format = "pyproject";
|
];
|
||||||
|
|
||||||
|
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;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,5 +24,7 @@ buildPythonPackage rec {
|
||||||
description = "Write man pages using Markdown, and convert them to Roff or HTML";
|
description = "Write man pages using Markdown, and convert them to Roff or HTML";
|
||||||
homepage = "https://github.com/refi64/mrkd";
|
homepage = "https://github.com/refi64/mrkd";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
|
# https://github.com/refi64/mrkd/pull/6
|
||||||
|
broken = versionAtLeast mistune.version "2";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ python3Packages.buildPythonPackage rec {
|
||||||
pyyaml
|
pyyaml
|
||||||
pyfiglet
|
pyfiglet
|
||||||
asciimatics
|
asciimatics
|
||||||
mistune_2_0
|
mistune
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "present" ];
|
pythonImportsCheck = [ "present" ];
|
||||||
|
|
|
@ -50,7 +50,7 @@ buildPythonPackage rec {
|
||||||
django-extensions
|
django-extensions
|
||||||
djangorestframework
|
djangorestframework
|
||||||
flufl_lock
|
flufl_lock
|
||||||
mistune_2_0
|
mistune
|
||||||
networkx
|
networkx
|
||||||
psycopg2
|
psycopg2
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
|
|
@ -15,8 +15,7 @@ buildPythonApplication rec {
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "click>=7.0,<8.0" "click" \
|
--replace "click>=7.0,<8.0" "click" \
|
||||||
--replace "wcwidth==0.1.9" "wcwidth" \
|
--replace "wcwidth==0.1.9" "wcwidth" \
|
||||||
--replace "redis>=3.4.0,<4.0.0" "redis" \
|
--replace "redis>=3.4.0,<4.0.0" "redis"
|
||||||
--replace "mistune>=2.0,<3.0" "mistune"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -24,7 +23,7 @@ buildPythonApplication rec {
|
||||||
click
|
click
|
||||||
configobj
|
configobj
|
||||||
importlib-resources
|
importlib-resources
|
||||||
mistune_2_0
|
mistune
|
||||||
packaging
|
packaging
|
||||||
pendulum
|
pendulum
|
||||||
prompt-toolkit
|
prompt-toolkit
|
||||||
|
|
|
@ -103,6 +103,8 @@ mapAliases ({
|
||||||
mailman = throw "Please use pkgs.mailman"; # added 2022-04-29
|
mailman = throw "Please use pkgs.mailman"; # added 2022-04-29
|
||||||
mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29
|
mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29
|
||||||
mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29
|
mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29
|
||||||
|
mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12
|
||||||
|
mistune_2_0 = mistune; # added 2022-08-12
|
||||||
net2grid = gridnet; # add 2022-04-22
|
net2grid = gridnet; # add 2022-04-22
|
||||||
nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
|
nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
|
||||||
ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28
|
ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28
|
||||||
|
|
|
@ -5574,11 +5574,7 @@ in {
|
||||||
|
|
||||||
mistletoe = callPackage ../development/python-modules/mistletoe { };
|
mistletoe = callPackage ../development/python-modules/mistletoe { };
|
||||||
|
|
||||||
inherit (import ../development/python-modules/mistune self)
|
mistune = callPackage ../development/python-modules/mistune { };
|
||||||
mistune
|
|
||||||
mistune_0_8
|
|
||||||
mistune_2_0
|
|
||||||
;
|
|
||||||
|
|
||||||
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
|
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue