@@ -0,0 +1,27 @@
1+{ buildPythonPackage, fetchPypi, lib,
2+ coverage, dicttoxml, flake8, pexpect, prettytable, requests_toolbelt
3+}:
4+buildPythonPackage rec {
5+ name = "${pname}-${version}";
6+ pname = "argcomplete";
7+ version = "1.8.2";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0sslhl1klvh92c8hjsz3y3mmnpcqspcgi49g5cik2rpbfkhcsb3s";
12+ };
13+
14+ doCheck = false; # bash-completion test fails with "compgen: command not found".
15+
16+ # re-enable if we are able to make testing work
17+ # buildInputs = [ coverage flake8 ];
18+
19+ propagatedBuildInputs = [ dicttoxml pexpect prettytable requests_toolbelt ];
20+
21+ meta = with lib; {
22+ description = "Bash tab completion for argparse";
23+ homepage = "https://argcomplete.readthedocs.io";
24+ maintainers = [ maintainers.womfoo ];
25+ license = [ licenses.asl20 ];
26+ };
27+}