summary refs log tree commit diff
path: root/pkgs/development/python-modules/beautifultable/default.nix
blob: 646cfe8af9a2c4e1c593046c2c571e1413a22d2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, wcwidth
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "beautifultable";
  version = "1.0.1";

  src = fetchFromGitHub {
    owner = "pri22296";
    repo = pname;
    rev = "v${version}";
    sha256 = "12ci6jy8qmbphsvzvj98466nlhclfzs0a0pmbsv3mf5bfcdwvbh7";
  };

  propagatedBuildInputs = [
    wcwidth
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [ "test.py" ];

  pythonImportsCheck = [ "beautifultable" ];

  meta = with lib; {
    description = "Python package for printing visually appealing tables";
    homepage = "https://github.com/pri22296/beautifultable";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}