Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mdformat, 6 mdit-py-plugins, 7 poetry-core, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "mdformat-toc"; 14 version = "0.3.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "hukkin"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-3EX6kGez408tEYiR9VSvi3GTrb4ds+HJwpFflv77nkg="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ mdformat ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "mdformat_toc" ]; 33 34 meta = with lib; { 35 description = "Mdformat plugin to generate a table of contents"; 36 homepage = "https://github.com/hukkin/mdformat-toc"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ 39 aldoborrero 40 polarmutex 41 ]; 42 }; 43}