1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, mdformat 6, mdit-py-plugins 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "mdformat-tables"; 13 version = "0.4.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "executablebooks"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ="; 23 }; 24 25 nativeBuildInputs = [ 26 flit-core 27 ]; 28 29 buildInputs = [ 30 mdformat 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "mdformat_tables" 39 ]; 40 41 meta = with lib; { 42 description = "An mdformat plugin for rendering tables"; 43 homepage = "https://github.com/executablebooks/mdformat-tables"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ aldoborrero polarmutex ]; 46 }; 47}