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, mdformat-gfm 8, mdformat-tables 9, mdit-py-plugins 10, poetry-core 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "mdformat-gfm"; 17 version = "0.3.5"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "hukkin"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-7sIa50jCN+M36Y0C05QaAL+TVwLzKxJ0gzpZI1YQFxg="; 27 }; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 buildInputs = [ 34 mdformat 35 markdown-it-py 36 mdit-py-plugins 37 ]; 38 39 propagatedBuildInputs = [ 40 mdformat-tables 41 linkify-it-py 42 ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ 49 "mdformat_gfm" 50 ]; 51 52 meta = with lib; { 53 description = "Mdformat plugin for GitHub Flavored Markdown compatibility"; 54 homepage = "https://github.com/hukkin/mdformat-gfm"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ aldoborrero polarmutex ]; 57 }; 58}