1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, setuptools
6}:
7
8buildPythonPackage rec {
9 pname = "mistune";
10 version = "2.0.5";
11
12 format = "pyproject";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
17 };
18
19 nativeBuildInputs = [
20 setuptools
21 ];
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "mistune" ];
28
29 meta = with lib; {
30 changelog = "https://github.com/lepture/mistune/blob/v${version}/docs/changes.rst";
31 description = "A sane Markdown parser with useful plugins and renderers";
32 homepage = "https://github.com/lepture/mistune";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ dotlambda ];
35 };
36}