25 buildPythonPackage rec {
30 src = fetchFromGitHub {
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"
97 # argparse output changed
98 "test_naked_invocation"
100 "test_stdin_read_warning"
101 # httpbin compatibility issues
103 "test_binary_suppresses_when_terminal"
104 "test_binary_suppresses_when_not_terminal_but_pretty"
105 "test_binary_included_and_correct_when_suitable"
107 ++ lib.optionals stdenv.hostPlatform.isDarwin [
113 description = "Command line HTTP client whose goal is to make CLI human-friendly";
114 homepage = "https://httpie.org/";
115 changelog = "https://github.com/httpie/httpie/blob/${version}/CHANGELOG.md";
116 license = licenses.bsd3;
117 maintainers = with maintainers; [