ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / argh / default.nix
blobfd9ff184000f2591d6f387a87e26d6f575fec2aa
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , iocapture
6 , mock
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "argh";
12   version = "0.26.2";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65";
17   };
19   patches = [
20     # https://github.com/neithere/argh/issues/148
21     (fetchpatch {
22       name = "argh-0.26.2-fix-py3.9-msgs.patch";
23       url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/argh/files/argh-0.26.2-fix-py3.9-msgs.patch?id=6f194f12a2e30aad7da347848f7b0187e188f983";
24       sha256 = "nBmhF2PXVeS7cBNujzip6Bb601LRHrjmhlGKFr/++Oo=";
25     })
26   ];
28   checkInputs = [
29     iocapture
30     mock
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [ "argh" ];
36   meta = with lib; {
37     homepage = "https://github.com/neithere/argh";
38     description = "An unobtrusive argparse wrapper with natural syntax";
39     license = licenses.lgpl3Plus;
40     maintainers = with maintainers; [ domenkozar ];
41   };