From de54eea187841c1991a3fe908a954bdc9a889f1b Mon Sep 17 00:00:00 2001 From: happysalada Date: Thu, 14 Sep 2023 03:59:37 -0400 Subject: [PATCH] python310Packages.markdown2: 2.4.8 -> 2.4.10 --- .../python-modules/markdown2/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/markdown2/default.nix b/pkgs/development/python-modules/markdown2/default.nix index 8e4cd387e997..ac5e880886cf 100644 --- a/pkgs/development/python-modules/markdown2/default.nix +++ b/pkgs/development/python-modules/markdown2/default.nix @@ -3,18 +3,22 @@ , fetchFromGitHub , python , pygments +, pythonOlder +, wavedrom }: buildPythonPackage rec { pname = "markdown2"; - version = "2.4.8"; + version = "2.4.10"; + + disabled = pythonOlder "3.5"; # PyPI does not contain tests, so using GitHub instead. src = fetchFromGitHub { owner = "trentm"; repo = "python-markdown2"; rev = version; - hash = "sha256-0T3HcfjEApEEWtNZGZcta85dY9d/0mSyRBlrqBQEQwk="; + hash = "sha256-1Vs2OMQm/XBOEefV6W58X5hap91aTNuTx8UFf0285uk="; }; nativeCheckInputs = [ pygments ]; @@ -29,6 +33,16 @@ buildPythonPackage rec { runHook postCheck ''; + passthru.optional-dependencies = { + code_syntax_highlighting = [ + pygments + ]; + wavedrom = [ + wavedrom + ]; + all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") passthru.optional-dependencies)); + }; + meta = with lib; { changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md"; description = "A fast and complete Python implementation of Markdown";