1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 boltons,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "face";
13 version = "24.0.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-YR4poBrFlw8Ad/nFd+dG1IwIJYi0EbM6DdVcTYcpSfY=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ boltons ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "face" ];
30
31 disabledTests = [
32 # Assertion error as we take the Python release into account
33 "test_search_prs_basic"
34 "test_module_shortcut"
35 ];
36
37 meta = with lib; {
38 description = "Command-line interface parser and framework";
39 longDescription = ''
40 A command-line interface parser and framework, friendly for
41 users, full-featured for developers.
42 '';
43 homepage = "https://github.com/mahmoud/face";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ twey ];
46 };
47}