python310Packages.markdown2: 2.4.8 -> 2.4.10

This commit is contained in:
happysalada 2023-09-14 03:59:37 -04:00 committed by Yt
parent c4a980a158
commit de54eea187

View file

@ -3,18 +3,22 @@
, fetchFromGitHub , fetchFromGitHub
, python , python
, pygments , pygments
, pythonOlder
, wavedrom
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "markdown2"; pname = "markdown2";
version = "2.4.8"; version = "2.4.10";
disabled = pythonOlder "3.5";
# PyPI does not contain tests, so using GitHub instead. # PyPI does not contain tests, so using GitHub instead.
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "trentm"; owner = "trentm";
repo = "python-markdown2"; repo = "python-markdown2";
rev = version; rev = version;
hash = "sha256-0T3HcfjEApEEWtNZGZcta85dY9d/0mSyRBlrqBQEQwk="; hash = "sha256-1Vs2OMQm/XBOEefV6W58X5hap91aTNuTx8UFf0285uk=";
}; };
nativeCheckInputs = [ pygments ]; nativeCheckInputs = [ pygments ];
@ -29,6 +33,16 @@ buildPythonPackage rec {
runHook postCheck 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; { meta = with lib; {
changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md"; changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md";
description = "A fast and complete Python implementation of Markdown"; description = "A fast and complete Python implementation of Markdown";