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