2021-02-16 08:09:34 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-11-12 23:02:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-18 12:04:06 +01:00
|
|
|
pname = "configargparse";
|
2021-06-13 00:30:37 +02:00
|
|
|
version = "1.4.1";
|
2017-11-12 23:02:37 +01:00
|
|
|
|
2021-02-16 08:09:34 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bw2";
|
2021-03-18 12:04:06 +01:00
|
|
|
repo = "ConfigArgParse";
|
|
|
|
rev = "v${version}";
|
2021-06-13 00:30:37 +02:00
|
|
|
sha256 = "sha256-hzhjrdrXxjksvbHlTnQVsT350g0yuG1F21fElv6bLSA=";
|
2017-11-12 23:02:37 +01:00
|
|
|
};
|
|
|
|
|
2021-02-16 08:09:34 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "configargparse" ];
|
2017-11-12 23:02:37 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A drop-in replacement for argparse";
|
2021-02-16 08:09:34 +01:00
|
|
|
homepage = "https://github.com/bw2/ConfigArgParse";
|
2017-11-12 23:02:37 +01:00
|
|
|
license = licenses.mit;
|
2017-12-05 23:20:11 +01:00
|
|
|
maintainers = [ maintainers.willibutz ];
|
2017-11-12 23:02:37 +01:00
|
|
|
};
|
|
|
|
}
|