1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, py
6, mock
7, glibcLocales
8, iocapture
9}:
10
11buildPythonPackage rec {
12 pname = "argh";
13 version = "0.26.2";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65";
18 };
19
20 checkInputs = [ pytest py mock glibcLocales iocapture ];
21
22 checkPhase = ''
23 export LANG="en_US.UTF-8"
24 py.test
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/neithere/argh/";
29 description = "An unobtrusive argparse wrapper with natural syntax";
30 license = licenses.lgpl2;
31 maintainers = with maintainers; [ domenkozar ];
32 };
33
34}