10 buildPythonPackage rec {
13 format = "setuptools";
15 disabled = pythonOlder "3.5";
17 # PyPI does not contain tests, so using GitHub instead.
18 src = fetchFromGitHub {
20 repo = "python-markdown2";
22 hash = "sha256-1Vs2OMQm/XBOEefV6W58X5hap91aTNuTx8UFf0285uk=";
25 nativeCheckInputs = [ pygments ];
31 ${python.interpreter} ./test.py -- -knownfailure
37 passthru.optional-dependencies = {
38 code_syntax_highlighting = [
44 all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") passthru.optional-dependencies));
48 changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md";
49 description = "A fast and complete Python implementation of Markdown";
50 mainProgram = "markdown2";
51 homepage = "https://github.com/trentm/python-markdown2";
52 license = licenses.mit;
53 maintainers = with maintainers; [ hbunke ];