Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 45 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, buildPythonPackage, fetchFromGitHub, latex2mathml, pygments, pytest7CheckHook, setuptools, wavedrom,}:
buildPythonPackage rec { pname = "markdown2"; version = "2.5.5"; pyproject = true;
src = fetchFromGitHub { owner = "trentm"; repo = "python-markdown2"; tag = version; hash = "sha256-h0vzv59RsceTZSvFF9DX5D6YanAKMTG3cNc1napXMyI="; };
build-system = [ setuptools ];
pythonImportsCheck = [ "markdown2" ];
nativeCheckInputs = [ pytest7CheckHook ];
optional-dependencies = { code_syntax_highlighting = [ pygments ]; wavedrom = [ wavedrom ]; latex = [ latex2mathml ]; all = lib.concatAttrValues (lib.removeAttrs optional-dependencies [ "all" ]); };
meta = { changelog = "https://github.com/trentm/python-markdown2/blob/${src.tag}/CHANGES.md"; description = "Fast and complete Python implementation of Markdown"; mainProgram = "markdown2"; homepage = "https://github.com/trentm/python-markdown2"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hbunke ]; };}