1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # build dependencies
8 flit-core,
9
10 # dependencies
11 mdformat,
12 wcwidth,
13
14 # tests
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "mdformat-tables";
20 version = "1.0.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "executablebooks";
27 repo = "mdformat-tables";
28 tag = "v${version}";
29 hash = "sha256-7MbpGBGprhGrQ9P31HUU2h0bjyHWap6DETVN/dCDA1w=";
30 };
31
32 build-system = [ flit-core ];
33
34 dependencies = [
35 mdformat
36 wcwidth
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "mdformat_tables" ];
42
43 meta = with lib; {
44 description = "Mdformat plugin for rendering tables";
45 homepage = "https://github.com/executablebooks/mdformat-tables";
46 license = licenses.mit;
47 maintainers = with maintainers; [
48 aldoborrero
49 polarmutex
50 ];
51 };
52}