2016-05-19 23:35:45 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2018-02-21 14:02:48 +01:00
|
|
|
version = "0.11.1";
|
2016-05-19 23:35:45 +02:00
|
|
|
name = "http-prompt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "http-prompt";
|
|
|
|
owner = "eliangcs";
|
2018-02-21 14:02:48 +01:00
|
|
|
sha256 = "0gi76wcn6lxkd74ljpbyhr7ylhq6sm8z7h66dnfmpsw4nhw49178";
|
2016-05-19 23:35:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
click
|
|
|
|
httpie
|
|
|
|
parsimonious
|
|
|
|
prompt_toolkit
|
|
|
|
pygments
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2017-12-18 20:39:12 +01:00
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/${name} --version | grep -q "${version}"
|
|
|
|
'';
|
|
|
|
|
2016-05-19 23:35:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An interactive command-line HTTP client featuring autocomplete and syntax highlighting";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/eliangcs/http-prompt;
|
2016-05-19 23:35:45 +02:00
|
|
|
license = licenses.mit;
|
2018-04-06 10:57:19 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-05-19 23:35:45 +02:00
|
|
|
platforms = platforms.linux; # can only test on linux
|
|
|
|
};
|
|
|
|
}
|