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