1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 colored,
8 pytestCheckHook,
9 numpy,
10 pandas,
11}:
12
13buildPythonPackage rec {
14 pname = "ansitable";
15 version = "0.11.4";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-XUjXVs9/ETlbbtvYz8YJqCsP1BFajqQKQfSM+Rvm4O0=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ colored ];
28
29 pythonImportsCheck = [ "ansitable" ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 numpy
34 pandas
35 ];
36
37 meta = with lib; {
38 description = "Quick and easy display of tabular data and matrices with optional ANSI color and borders";
39 homepage = "https://pypi.org/project/ansitable/";
40 license = licenses.mit;
41 maintainers = with maintainers; [
42 djacu
43 a-camarillo
44 ];
45 };
46}