Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 42 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder 2, attrs 3, linkify-it-py 4, psutil 5, pytest-benchmark 6, pytest-regressions 7, typing-extensions 8}: 9 10buildPythonPackage rec { 11 pname = "markdown-it-py"; 12 version = "1.0.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "executablebooks"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-GA7P2I8N+i2ISsVgx58zyhrfKMcZ7pL4X9T/trbsr1Y="; 22 }; 23 24 propagatedBuildInputs = [ attrs linkify-it-py ] 25 ++ lib.optional (pythonOlder "3.8") typing-extensions; 26 27 checkInputs = [ 28 psutil 29 pytest-benchmark 30 pytest-regressions 31 pytestCheckHook 32 ]; 33 pytestImportsCheck = [ "markdown_it" ]; 34 35 meta = with lib; { 36 description = "Markdown parser done right"; 37 homepage = "https://markdown-it-py.readthedocs.io/en/latest"; 38 changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.rev}/CHANGELOG.md"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ bhipple ]; 41 }; 42}