1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 wcwidth,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "beautifultable";
12 version = "1.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "pri22296";
19 repo = "beautifultable";
20 rev = "v${version}";
21 hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw=";
22 };
23
24 propagatedBuildInputs = [ wcwidth ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 enabledTestPaths = [ "test.py" ];
29
30 pythonImportsCheck = [ "beautifultable" ];
31
32 meta = with lib; {
33 description = "Python package for printing visually appealing tables";
34 homepage = "https://github.com/pri22296/beautifultable";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}