25 buildPythonPackage rec {
30 src = fetchFromGitHub {
33 rev = "refs/tags/${version}";
34 hash = "sha256-uZKkUUrPPnLHPHL8YrZgfsyCsSOR0oZ2eFytiV0PIUY=";
42 build-system = [ setuptools ];
58 ] ++ requests.optional-dependencies.socks;
60 __darwinAllowLocalNetworking = true;
74 installShellCompletion --cmd http \
75 --bash extras/httpie-completion.bash \
76 --fish extras/httpie-completion.fish
78 # convert the docs/README.md file
79 pandoc --standalone -f markdown -t man docs/README.md -o docs/http.1
80 installManPage docs/http.1
88 pythonImportsCheck = [ "httpie" ];
92 "tests/test_plugins_cli.py"
98 "test_stdin_read_warning"
99 # httpbin compatibility issues
101 "test_binary_suppresses_when_terminal"
102 "test_binary_suppresses_when_not_terminal_but_pretty"
103 "test_binary_included_and_correct_when_suitable"
105 ++ lib.optionals stdenv.hostPlatform.isDarwin [
111 description = "Command line HTTP client whose goal is to make CLI human-friendly";
112 homepage = "https://httpie.org/";
113 changelog = "https://github.com/httpie/httpie/blob/${version}/CHANGELOG.md";
114 license = licenses.bsd3;
115 maintainers = with maintainers; [