2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, httpie }:
|
2016-05-19 21:35:45 +00:00
|
|
|
|
2019-11-16 04:34:53 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-05-28 12:59:57 +00:00
|
|
|
pname = "http-prompt";
|
2022-09-11 08:39:21 +00:00
|
|
|
version = "2.1.0";
|
2016-05-19 21:35:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "http-prompt";
|
2022-09-11 08:38:12 +00:00
|
|
|
owner = "httpie";
|
2022-09-11 08:39:21 +00:00
|
|
|
sha256 = "sha256-e4GyuxCeXYNsnBXyjIJz1HqSrqTGan0N3wxUFS+Hvkw=";
|
2016-05-19 21:35:45 +00:00
|
|
|
};
|
|
|
|
|
2019-11-16 04:34:53 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2016-05-19 21:35:45 +00:00
|
|
|
click
|
|
|
|
httpie
|
|
|
|
parsimonious
|
2021-07-22 15:02:31 +00:00
|
|
|
(python.pkgs.callPackage ../../../development/python-modules/prompt-toolkit/1.nix {})
|
2016-05-19 21:35:45 +00:00
|
|
|
pygments
|
|
|
|
six
|
2022-09-11 08:39:21 +00:00
|
|
|
pyyaml
|
2016-05-19 21:35:45 +00:00
|
|
|
];
|
|
|
|
|
2017-12-18 19:39:12 +00:00
|
|
|
checkPhase = ''
|
2018-05-28 12:59:57 +00:00
|
|
|
$out/bin/${pname} --version | grep -q "${version}"
|
2017-12-18 19:39:12 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-19 21:35:45 +00:00
|
|
|
description = "Interactive command-line HTTP client featuring autocomplete and syntax highlighting";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "http-prompt";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/eliangcs/http-prompt";
|
2016-05-19 21:35:45 +00:00
|
|
|
license = licenses.mit;
|
2019-02-20 18:52:48 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2019-08-17 05:41:15 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-05-19 21:35:45 +00:00
|
|
|
};
|
|
|
|
}
|