python3Packages.markdown2: add patch for xss issue SNYK-PYTHON-MARKDOWN2-2606985
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, python
|
||||
, pygments
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "markdown2";
|
||||
@@ -12,6 +18,14 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-zNZ7/dDZbPIwcxSLvf8u5oaAgHLrZ6kk4vXNPUuZs/4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "SNYK-PYTHON-MARKDOWN2-2606985-xss.patch"; # no CVE (yet?)
|
||||
url = "https://github.com/trentm/python-markdown2/commit/5898fcc1090ef7cd7783fa1422cc0e53cbca9d1b.patch";
|
||||
sha256 = "sha256-M6kKxjHVC3O0BvDeEF4swzfpFsDO/LU9IHvfjK4hznA=";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pygments ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user