44bd5ab0bc
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/http-prompt/versions. <details><summary>Version release notes (from GitHub)</summary> * Fix bug: Handle OpenAPI `basePath` properly (#140, #141)</details> These checks were done: - built on NixOS - /nix/store/1gzy7b5js44k972zrjzd5g2rjk00l901-http-prompt-0.11.2/bin/.http-prompt-wrapped passed the binary check. - /nix/store/1gzy7b5js44k972zrjzd5g2rjk00l901-http-prompt-0.11.2/bin/http-prompt passed the binary check. - 2 of 2 passed binary check by having a zero exit code. - 2 of 2 passed binary check by having the new version present in output. - found 0.11.2 with grep in /nix/store/1gzy7b5js44k972zrjzd5g2rjk00l901-http-prompt-0.11.2 - directory tree listing: https://gist.github.com/9cc6cb35afe53057b07f364f2b4bfae8 - du listing: https://gist.github.com/7ef9ede9ef7a82a304847cf671cef769
36 lines
893 B
Nix
36 lines
893 B
Nix
{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "http-prompt";
|
|
version = "0.11.2";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
repo = "http-prompt";
|
|
owner = "eliangcs";
|
|
sha256 = "130w3wkb5jbiwm5w0b470nd50gf30vrknmf3knhlgdxdmfb30zjz";
|
|
};
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
click
|
|
httpie
|
|
parsimonious
|
|
prompt_toolkit
|
|
pygments
|
|
six
|
|
];
|
|
|
|
checkPhase = ''
|
|
$out/bin/${pname} --version | grep -q "${version}"
|
|
'';
|
|
|
|
meta = with stdenv.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; [ ];
|
|
platforms = platforms.linux; # can only test on linux
|
|
};
|
|
}
|