nixpkgs/pkgs/tools/networking/http-prompt/default.nix
Markus Hauck 6bb1817999 http-prompt: disable tests
The http-prompt tests do something with files, which leads to
permission errors during test execution.

For now replace the check with a executable sanity check
2017-12-19 19:09:52 +01:00

35 lines
873 B
Nix

{ stdenv, fetchFromGitHub, pythonPackages, httpie }:
pythonPackages.buildPythonApplication rec {
version = "0.11.0";
name = "http-prompt";
src = fetchFromGitHub {
rev = "v${version}";
repo = "http-prompt";
owner = "eliangcs";
sha256 = "0arl85880nnyfx8cvpzm6cr8nalhyrkz5zqfr628p487rwqv45ip";
};
propagatedBuildInputs = with pythonPackages; [
click
httpie
parsimonious
prompt_toolkit
pygments
six
];
checkPhase = ''
$out/bin/${name} --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; [ matthiasbeyer ];
platforms = platforms.linux; # can only test on linux
};
}