about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/argcomplete
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/argcomplete')
-rw-r--r--nixpkgs/pkgs/development/python-modules/argcomplete/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix b/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix
new file mode 100644
index 000000000000..b34b878a839c
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/argcomplete/default.nix
@@ -0,0 +1,38 @@
+{ buildPythonPackage, fetchPypi, lib
+, dicttoxml
+, importlib-metadata
+, pexpect
+, prettytable
+, requests_toolbelt
+}:
+buildPythonPackage rec {
+  pname = "argcomplete";
+  version = "1.11.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss";
+  };
+
+  doCheck = false; # meant to be ran with interactive interpreter
+
+  # re-enable if we are able to make testing work
+  # checkInputs = [ bashInteractive coverage flake8 ];
+
+  propagatedBuildInputs = [
+    dicttoxml
+    importlib-metadata
+    pexpect
+    prettytable
+    requests_toolbelt
+  ];
+
+  pythonImportsCheck = [ "argcomplete" ];
+
+  meta = with lib; {
+    description = "Bash tab completion for argparse";
+    homepage = "https://kislyuk.github.io/argcomplete/";
+    maintainers = [ maintainers.womfoo ];
+    license = [ licenses.asl20 ];
+  };
+}