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