1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/tools/networking/http-prompt/default.nix
2018-05-28 05:59:57 -07:00

36 lines
893 B
Nix

{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
pythonPackages.buildPythonApplication rec {
pname = "http-prompt";
version = "0.11.1";
name = "${pname}-${version}";
src = fetchFromGitHub {
rev = "v${version}";
repo = "http-prompt";
owner = "eliangcs";
sha256 = "0gi76wcn6lxkd74ljpbyhr7ylhq6sm8z7h66dnfmpsw4nhw49178";
};
propagatedBuildInputs = with pythonPackages; [
click
httpie
parsimonious
prompt_toolkit
pygments
six
];
checkPhase = ''
$out/bin/${pname} --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
};
}