2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-27 14:47:07 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, py
|
|
|
|
, mock
|
2018-11-24 13:36:04 +00:00
|
|
|
, glibcLocales
|
|
|
|
, iocapture
|
2018-10-27 14:47:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argh";
|
2018-11-04 10:34:53 +00:00
|
|
|
version = "0.26.2";
|
2018-10-27 14:47:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:53 +00:00
|
|
|
sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65";
|
2018-10-27 14:47:07 +01:00
|
|
|
};
|
|
|
|
|
2018-11-24 13:36:04 +00:00
|
|
|
checkInputs = [ pytest py mock glibcLocales iocapture ];
|
2018-10-27 14:47:07 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/neithere/argh/";
|
2018-10-27 14:47:07 +01:00
|
|
|
description = "An unobtrusive argparse wrapper with natural syntax";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|