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