2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, httpie }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "http-prompt";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "http-prompt";
|
2022-09-14 18:05:37 +00:00
|
|
|
owner = "httpie";
|
|
|
|
sha256 = "sha256-e4GyuxCeXYNsnBXyjIJz1HqSrqTGan0N3wxUFS+Hvkw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
click
|
|
|
|
httpie
|
|
|
|
parsimonious
|
2021-08-05 21:33:18 +00:00
|
|
|
(python.pkgs.callPackage ../../../development/python-modules/prompt-toolkit/1.nix {})
|
2020-04-24 23:36:52 +00:00
|
|
|
pygments
|
|
|
|
six
|
2022-09-14 18:05:37 +00:00
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/${pname} --version | grep -q "${version}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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; [ matthiasbeyer ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|