diff --git a/pkgs/development/python-modules/fonttools/default.nix b/pkgs/development/python-modules/fonttools/default.nix index 3c167debba37..07f60371d96b 100644 --- a/pkgs/development/python-modules/fonttools/default.nix +++ b/pkgs/development/python-modules/fonttools/default.nix @@ -4,6 +4,7 @@ , pythonOlder , isPyPy , fetchFromGitHub +, fetchpatch , setuptools-scm , fs , lxml @@ -36,6 +37,14 @@ buildPythonPackage rec { hash = "sha256-fcFFJi9Hr0m74LwFIhhhm/bMfxepAvg4/ymU53MmsPg="; }; + patches = [ + (fetchpatch { + name = "CVE-2023-45139.patch"; + url = "https://github.com/fonttools/fonttools/commit/9f61271dc1ca82ed91f529b130fe5dc5c9bf1f4c.patch"; + hash = "sha256-29OB21B8S4hGZlvNJnOTYTFAmEii+z5oK6tycoK3PXc="; + }) + ]; + nativeBuildInputs = [ setuptools-scm ]; passthru.optional-dependencies = let