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