mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
2a06ce2270
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
36 lines
943 B
Nix
36 lines
943 B
Nix
{ lib, fetchFromGitHub, python3Packages, httpie }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "http-prompt";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
repo = "http-prompt";
|
|
owner = "httpie";
|
|
sha256 = "sha256-e4GyuxCeXYNsnBXyjIJz1HqSrqTGan0N3wxUFS+Hvkw=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
click
|
|
httpie
|
|
parsimonious
|
|
(python.pkgs.callPackage ../../../development/python-modules/prompt-toolkit/1.nix {})
|
|
pygments
|
|
six
|
|
pyyaml
|
|
];
|
|
|
|
checkPhase = ''
|
|
$out/bin/${pname} --version | grep -q "${version}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|