nixpkgs/pkgs/tools/networking/http-prompt/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

37 lines
973 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 = "Interactive command-line HTTP client featuring autocomplete and syntax highlighting";
mainProgram = "http-prompt";
homepage = "https://github.com/eliangcs/http-prompt";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer ];
platforms = platforms.linux ++ platforms.darwin;
};
}