about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytablewriter/default.nix
blob: 07461e06a298a55a9c77591f19a4c61204a53039 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ buildPythonPackage
, fetchFromGitHub
, lib
, dataproperty
, mbstrdecoder
, pathvalidate
, setuptools
, tabledata
, tcolorpy
, typepy
, pytestCheckHook
, pyyaml
, toml
, elasticsearch
, dominate
}:

buildPythonPackage rec {
  pname = "pytablewriter";
  version = "0.64.2";

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-+IOHnmdd9g3SoHyITJJtbJ0/SAAmwWmwX5XeqsO34EM=";
  };

  propagatedBuildInputs = [
    dataproperty
    mbstrdecoder
    pathvalidate
    tabledata
    tcolorpy
    typepy
  ];

  checkInputs = [ pyyaml toml elasticsearch dominate ];
  nativeCheckInputs = [ pytestCheckHook ];
  # Circular dependency
  disabledTests = [
    "test_normal_from_file"
    "test_normal_from_text"
    "test_normal_clear_theme"
  ];
  disabledTestPaths = [
    "test/writer/binary/test_excel_writer.py"
    "test/writer/binary/test_sqlite_writer.py"
  ];

  meta = with lib; {
    homepage = "https://github.com/thombashi/pytablewriter";
    description = "A library to write a table in various formats";
    maintainers = with maintainers; [ genericnerdyusername ];
    license = licenses.mit;
  };
}