about summary refs log tree commit diff
path: root/pkgs/development/python-modules/face/default.nix
blob: cd024c1fb22b2954fd432e8d17e4df10a0ced167 (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
{ lib
, buildPythonPackage
, fetchPypi
, boltons
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "face";
  version = "22.0.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0=";
  };

  propagatedBuildInputs = [
    boltons
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "face"
  ];

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

  meta = with lib; {
    description = "A 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 = licenses.bsd3;
    maintainers = with maintainers; [ twey ];
  };
}