summary refs log tree commit diff
path: root/pkgs/tools/networking/http-prompt/default.nix
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-05-19 23:35:45 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-05-28 14:04:20 +0200
commitf48c8ddf0b297764ee2052755fe411c9f376c1b7 (patch)
treea5cde35cfe50132d07f6f509a8d9004f88e4784d /pkgs/tools/networking/http-prompt/default.nix
parent6e0f7b5963f4dd63b4d15cdd4f55d9f378315838 (diff)
downloadnixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar.gz
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar.bz2
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar.lz
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar.xz
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.tar.zst
nixpkgs-f48c8ddf0b297764ee2052755fe411c9f376c1b7.zip
http-prompt: init at 0.2.0
Closes #15563
Diffstat (limited to 'pkgs/tools/networking/http-prompt/default.nix')
-rw-r--r--pkgs/tools/networking/http-prompt/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/networking/http-prompt/default.nix b/pkgs/tools/networking/http-prompt/default.nix
new file mode 100644
index 00000000000..ba9b8b2d771
--- /dev/null
+++ b/pkgs/tools/networking/http-prompt/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
+
+pythonPackages.buildPythonApplication rec {
+  version = "0.2.0";
+  name = "http-prompt";
+
+  src = fetchFromGitHub {
+    rev = "v${version}";
+    repo = "http-prompt";
+    owner = "eliangcs";
+    sha256 = "0hgw3kx9rfdg394darms3vqcjm6xw6qrm8gnz54nahmyxnhrxnpp";
+  };
+
+  propagatedBuildInputs = with pythonPackages; [
+    click
+    httpie
+    parsimonious
+    prompt_toolkit
+    pygments
+    six
+  ];
+
+  meta = with stdenv.lib; {
+    description = "An interactive command-line HTTP client featuring autocomplete and syntax highlighting";
+    homepage = "https://github.com/eliangcs/http-prompt";
+    license = licenses.mit;
+    maintainers = with maintainers; [ matthiasbeyer ];
+    platforms = platforms.linux; # can only test on linux
+  };
+}