From e83feaecff5fed7e96ea7055679bee5fdfbeaa74 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 20 Jun 2021 20:37:51 +0200 Subject: [PATCH] python3Packages.markdown-it-py: relax attrs contraint --- .../python-modules/markdown-it-py/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/markdown-it-py/default.nix b/pkgs/development/python-modules/markdown-it-py/default.nix index 322c4ac533d2..dc8866350b1f 100644 --- a/pkgs/development/python-modules/markdown-it-py/default.nix +++ b/pkgs/development/python-modules/markdown-it-py/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, pytestCheckHook +, pythonOlder , attrs , linkify-it-py , psutil @@ -21,6 +26,15 @@ buildPythonPackage rec { hash = "sha256-GA7P2I8N+i2ISsVgx58zyhrfKMcZ7pL4X9T/trbsr1Y="; }; + patches = [ + (fetchpatch { + # :arrow_up: UPGRADE: attrs -> v21 (#165) + # https://github.com/executablebooks/markdown-it-py/pull/165 + url = "https://github.com/executablebooks/markdown-it-py/commit/78381ffe1a651741594dc93e693b761422512fa2.patch"; + sha256 = "1kxhblpi4sycrs3rv50achr8g0wlgq33abg2acra26l736hlsya1"; + }) + ]; + propagatedBuildInputs = [ attrs linkify-it-py ] ++ lib.optional (pythonOlder "3.8") typing-extensions;