summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rich-tables/default.nix
blob: 2c7d29b51316491e18819d55b06d291037db08fb (plain)
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
58
59
60
61
62
63
64
65
66
{
  lib,
  buildPythonPackage,
  fetchPypi,
  poetry-core,
  coloraide,
  humanize,
  multimethod,
  platformdirs,
  rich,
  sqlparse,
  typing-extensions,
  rgbxy ? null,
}:
let
  version = "0.8.0";
in
buildPythonPackage {
  pname = "rich-tables";
  inherit version;
  pyproject = true;

  src = fetchPypi {
    pname = "rich_tables";
    inherit version;
    hash = "sha256-MN8QH6kLyogbcQ0VE9U034cwSFnaFDB2/Rnvy1DYyl4=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    coloraide
    humanize
    multimethod
    platformdirs
    rich
    sqlparse
    typing-extensions
  ];

  optional-dependencies = {
    hue = [
      rgbxy
    ];
  };

  pythonRelaxDeps = [
    "multimethod"
  ];

  pythonImportsCheck = [
    "rich_tables"
  ];

  meta = {
    description = "Ready-made rich tables for various purposes";
    homepage = "https://pypi.org/project/rich-tables/";
    license = lib.licenses.mit;
    maintainers = [
      lib.maintainers._9999years
    ];
    mainProgram = "table";
  };
}