about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/argh/default.nix
blob: 0e2beb6a31eb9f812b0f8dd95f3c424074af3608 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, pytest
, py
, mock
, glibcLocales
, iocapture
}:

buildPythonPackage rec {
  pname = "argh";
  version = "0.26.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65";
  };

  checkInputs = [ pytest py mock glibcLocales iocapture ];

  checkPhase = ''
    export LANG="en_US.UTF-8"
    py.test
  '';

  meta = with lib; {
    homepage = "https://github.com/neithere/argh/";
    description = "An unobtrusive argparse wrapper with natural syntax";
    license = licenses.lgpl2;
    maintainers = with maintainers; [ domenkozar ];
  };

}