1{ lib, buildPythonPackage, fetchPypi, boltons, pytest }:
2
3buildPythonPackage rec {
4 pname = "face";
5 version = "20.1.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "7d59ca5ba341316e58cf72c6aff85cca2541cf5056c4af45cb63af9a814bed3e";
10 };
11
12 propagatedBuildInputs = [ boltons ];
13
14 checkInputs = [ pytest ];
15 checkPhase = "pytest face/test";
16
17 # ironically, test_parse doesn't parse, but fixed in git so no point
18 # reporting
19 doCheck = false;
20
21 meta = with lib; {
22 homepage = "https://github.com/mahmoud/face";
23 description = "A command-line interface parser and framework";
24 longDescription = ''
25 A command-line interface parser and framework, friendly for
26 users, full-featured for developers.
27 '';
28 license = licenses.bsd3;
29 maintainers = with maintainers; [ twey ];
30 };
31}