You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.6 KiB
92 lines
1.6 KiB
3 years ago
|
{ lib
|
||
2 years ago
|
, buildPythonPackage
|
||
3 years ago
|
, fetchFromGitHub
|
||
|
, installShellFiles
|
||
|
, pandoc
|
||
2 years ago
|
, pythonOlder
|
||
|
# BuildInputs
|
||
|
, charset-normalizer
|
||
|
, defusedxml
|
||
|
, multidict
|
||
|
, pygments
|
||
|
, requests
|
||
|
, requests-toolbelt
|
||
|
, setuptools
|
||
|
, rich
|
||
|
, pysocks
|
||
|
# CheckInputs
|
||
|
, pytest-httpbin
|
||
|
, pytest-lazy-fixture
|
||
|
, pytest-mock
|
||
|
, pytestCheckHook
|
||
|
, responses
|
||
|
, werkzeug
|
||
3 years ago
|
}:
|
||
12 years ago
|
|
||
2 years ago
|
buildPythonPackage rec {
|
||
5 years ago
|
pname = "httpie";
|
||
2 years ago
|
version = "3.2.1";
|
||
2 years ago
|
format = "setuptools";
|
||
12 years ago
|
|
||
5 years ago
|
src = fetchFromGitHub {
|
||
3 years ago
|
owner = "httpie";
|
||
5 years ago
|
repo = "httpie";
|
||
|
rev = version;
|
||
2 years ago
|
hash = "sha256-WEe8zSlNckl7bPBi6u8mHQ1/xPw3kE81F8Xr15TchgM=";
|
||
12 years ago
|
};
|
||
|
|
||
3 years ago
|
nativeBuildInputs = [
|
||
|
installShellFiles
|
||
|
pandoc
|
||
4 years ago
|
];
|
||
5 years ago
|
|
||
2 years ago
|
propagatedBuildInputs = [
|
||
3 years ago
|
charset-normalizer
|
||
3 years ago
|
defusedxml
|
||
2 years ago
|
multidict
|
||
3 years ago
|
pygments
|
||
|
requests
|
||
|
requests-toolbelt
|
||
|
setuptools
|
||
2 years ago
|
rich
|
||
|
pysocks
|
||
3 years ago
|
];
|
||
3 years ago
|
|
||
2 years ago
|
checkInputs = [
|
||
5 years ago
|
pytest-httpbin
|
||
2 years ago
|
pytest-lazy-fixture
|
||
2 years ago
|
pytest-mock
|
||
5 years ago
|
pytestCheckHook
|
||
3 years ago
|
responses
|
||
2 years ago
|
werkzeug
|
||
5 years ago
|
];
|
||
|
|
||
4 years ago
|
postInstall = ''
|
||
4 years ago
|
# install completions
|
||
3 years ago
|
installShellCompletion --bash \
|
||
|
--name http.bash extras/httpie-completion.bash
|
||
|
installShellCompletion --fish \
|
||
|
--name http.fish extras/httpie-completion.fish
|
||
|
|
||
|
# convert the docs/README.md file
|
||
|
pandoc --standalone -f markdown -t man docs/README.md -o docs/http.1
|
||
|
installManPage docs/http.1
|
||
4 years ago
|
'';
|
||
|
|
||
3 years ago
|
pytestFlagsArray = [
|
||
|
"httpie"
|
||
|
"tests"
|
||
|
];
|
||
12 years ago
|
|
||
2 years ago
|
pythonImportsCheck = [
|
||
|
"httpie"
|
||
|
];
|
||
3 years ago
|
|
||
|
meta = with lib; {
|
||
12 years ago
|
description = "A command line HTTP client whose goal is to make CLI human-friendly";
|
||
4 years ago
|
homepage = "https://httpie.org/";
|
||
3 years ago
|
license = licenses.bsd3;
|
||
|
maintainers = with maintainers; [ antono relrod schneefux SuperSandro2000 ];
|
||
12 years ago
|
};
|
||
|
}
|