2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, pexpect
|
2023-03-15 16:39:30 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argcomplete";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2.1.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"coverage",' "" \
|
|
|
|
--replace " + lint_require" ""
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pexpect
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
# tries to build and install test packages which fails
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"argcomplete"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bash tab completion for argparse";
|
|
|
|
homepage = "https://kislyuk.github.io/argcomplete/";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|