From 19657c7fd67be5c6967c4d7413ce90b84de1397a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 12 Sep 2023 22:23:43 -0700 Subject: [PATCH] lektor: pin mistune at 2.0.5 --- pkgs/tools/misc/lektor/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/lektor/default.nix b/pkgs/tools/misc/lektor/default.nix index b9c6cd4a69d..638ce2ee3ce 100644 --- a/pkgs/tools/misc/lektor/default.nix +++ b/pkgs/tools/misc/lektor/default.nix @@ -1,13 +1,25 @@ { lib , fetchFromGitHub , fetchNpmDeps +, fetchPypi , nodejs , npmHooks , python3 }: let - python = python3; + python = python3.override { + packageOverrides = self: super: { + mistune = super.mistune.overridePythonAttrs (old: rec { + version = "2.0.5"; + src = fetchPypi { + inherit (old) pname; + inherit version; + hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ="; + }; + }); + }; + }; in python.pkgs.buildPythonApplication rec { pname = "lektor"; version = "3.4.0b8";