3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/http-prompt/default.nix

35 lines
859 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
pythonPackages.buildPythonApplication rec {
2018-02-21 13:02:48 +00:00
version = "0.11.1";
name = "http-prompt";
src = fetchFromGitHub {
rev = "v${version}";
repo = "http-prompt";
owner = "eliangcs";
2018-02-21 13:02:48 +00:00
sha256 = "0gi76wcn6lxkd74ljpbyhr7ylhq6sm8z7h66dnfmpsw4nhw49178";
};
propagatedBuildInputs = with pythonPackages; [
click
httpie
parsimonious
prompt_toolkit
pygments
six
];
checkPhase = ''
$out/bin/${name} --version | grep -q "${version}"
'';
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; [ ];
platforms = platforms.linux; # can only test on linux
};
}