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