Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, linkify-it-py 5, markdown-it-py 6, mdformat 7, mdit-py-plugins 8, ruamel-yaml 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "mdformat-frontmatter"; 14 version = "2.0.1"; 15 format = "flit"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "butler54"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-PhT5whtvvcYSs5gHQEsIvV1evhx7jR+3DWFMHrF0uMw="; 24 }; 25 26 buildInputs = [ 27 mdformat 28 mdit-py-plugins 29 ]; 30 31 propagatedBuildInputs = [ 32 ruamel-yaml 33 ]; 34 35 pythonImportsCheck = [ 36 "mdformat_frontmatter" 37 ]; 38 39 meta = with lib; { 40 description = "mdformat plugin to ensure frontmatter is respected"; 41 homepage = "https://github.com/butler54/mdformat-frontmatter"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ aldoborrero polarmutex ]; 44 }; 45}