1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 07:34:36 +00:00
nixpkgs/pkgs/tools/networking/http-prompt/default.nix

36 lines
894 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
pythonPackages.buildPythonApplication rec {
2018-05-28 13:59:57 +01:00
pname = "http-prompt";
version = "1.0.0";
2018-05-28 13:59:57 +01:00
name = "${pname}-${version}";
src = fetchFromGitHub {
rev = "v${version}";
repo = "http-prompt";
owner = "eliangcs";
sha256 = "0kngz2izcqjphbrdkg489p0xmf65xjc8ki1a2szcc8sgwc7z74xy";
};
propagatedBuildInputs = with pythonPackages; [
click
httpie
parsimonious
prompt_toolkit_1
pygments
six
];
checkPhase = ''
2018-05-28 13:59:57 +01:00
$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
};
}