1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, flit-core
6, iocapture
7, mock
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "argh";
13 version = "0.29.4";
14 format = "pyproject";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-aVwK5FNCcMriaXhBtKVvQ0qZBpSgAmTqEOu7zcAsE/c=";
19 };
20
21 nativeBuildInputs = [
22 flit-core
23 ];
24
25 nativeCheckInputs = [
26 iocapture
27 mock
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [ "argh" ];
32
33 meta = with lib; {
34 changelog = "https://github.com/neithere/argh/blob/v${version}/CHANGES";
35 homepage = "https://github.com/neithere/argh";
36 description = "An unobtrusive argparse wrapper with natural syntax";
37 license = licenses.lgpl3Plus;
38 maintainers = with maintainers; [ domenkozar ];
39 };
40}