depot/third_party/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

44 lines
921 B
Nix

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