summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/face/default.nix
blob: b6594a83bafa733f1737d7acebd98fb981722920 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  boltons,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "face";
  version = "24.0.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-YR4poBrFlw8Ad/nFd+dG1IwIJYi0EbM6DdVcTYcpSfY=";
  };

  build-system = [ setuptools ];

  dependencies = [ boltons ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "face" ];

  disabledTests = [
    # Assertion error as we take the Python release into account
    "test_search_prs_basic"
    "test_module_shortcut"
  ];

  meta = {
    description = "Command-line interface parser and framework";
    longDescription = ''
      A command-line interface parser and framework, friendly for
      users, full-featured for developers.
    '';
    homepage = "https://github.com/mahmoud/face";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ twey ];
  };
}