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