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