summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/clikit/default.nix
blob: 460a04dcf9810748fced2896b033c021b6764a7b (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
{
  lib,
  buildPythonPackage,
  crashtest,
  fetchFromGitHub,
  pastel,
  poetry-core,
  pylev,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "clikit";
  version = "0.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sdispater";
    repo = "clikit";
    tag = version;
    hash = "sha256-xAsUNhVQBjtSFHyjjnicAKRC3+Tdn3AdGDUYhmOOIdA=";
  };

  pythonRelaxDeps = [ "crashtest" ];

  build-system = [ poetry-core ];

  dependencies = [
    crashtest
    pastel
    pylev
  ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "clikit" ];

  meta = {
    description = "Group of utilities to build beautiful and testable command line interfaces";
    homepage = "https://github.com/sdispater/clikit";
    changelog = "https://github.com/sdispater/clikit/blob/${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ jakewaksbaum ];
  };
}