1{
2 lib,
3 buildPythonPackage,
4 colorama,
5 colorclass,
6 fetchFromGitHub,
7 poetry-core,
8 pytest-cov-stub,
9 pytest-xdist,
10 pytestCheckHook,
11 pythonOlder,
12 termcolor,
13}:
14
15buildPythonPackage rec {
16 pname = "terminaltables3";
17 version = "4.0.0-unstable-2024-07-21";
18 pyproject = true;
19
20 disabled = pythonOlder "3.11";
21
22 src = fetchFromGitHub {
23 owner = "matthewdeanmartin";
24 repo = "terminaltables3";
25 #rev = "refs/tags/v${version}";
26 rev = "f1c465b36eb9b91a984d8864b21376e7c37075b8";
27 hash = "sha256-UcEovh1Eb4QNPwLGDjCphPlJSSkOdhCJ2fK3tuSWOTc=";
28 };
29
30 build-system = [ poetry-core ];
31
32 nativeCheckInputs = [
33 colorama
34 colorclass
35 pytest-cov-stub
36 pytest-xdist
37 pytestCheckHook
38 termcolor
39 ];
40
41 pythonImportsCheck = [ "terminaltables3" ];
42
43 disabledTests = [
44 # Tests are comparing CLI output
45 "test_color"
46 "test_colors"
47 "test_height"
48 "test_width"
49 ];
50
51 meta = {
52 description = "Generate simple tables in terminals from a nested list of strings";
53 homepage = "https://github.com/matthewdeanmartin/terminaltables3";
54 changelog = "https://github.com/matthewdeanmartin/terminaltables3/blob/${src.rev}/CHANGELOG.md";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ fab ];
57 };
58}