summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cli-ui/default.nix
blob: 1637d78749ee535ce5df0b685fb9ce2d4b9f8f29 (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
{
  lib,
  fetchFromGitHub,
  pytestCheckHook,
  poetry-core,
  colorama,
  tabulate,
  unidecode,
  buildPythonPackage,
}:
buildPythonPackage rec {
  pname = "cli-ui";
  version = "0.19.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "your-tools";
    repo = "python-cli-ui";
    tag = "v${version}";
    hash = "sha256-BLc55LkVQwZ18V/fD/lBYw6jgchE8n0ijDTSr8/Jkdk=";
  };

  pythonRelaxDeps = [ "tabulate" ];

  build-system = [ poetry-core ];

  dependencies = [
    colorama
    tabulate
    unidecode
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cli_ui" ];

  meta = {
    description = "Build Nice User Interfaces In The Terminal";
    homepage = "https://github.com/your-tools/python-cli-ui";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ slashformotion ];
  };
}