diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-http-prompt/Makefile | 26 | ||||
-rw-r--r-- | devel/py-http-prompt/distinfo | 3 | ||||
-rw-r--r-- | devel/py-http-prompt/files/patch-http__prompt_execution.py | 11 | ||||
-rw-r--r-- | devel/py-http-prompt/pkg-descr | 4 |
5 files changed, 45 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index ba7ff75f735c..69c456dce58b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4141,6 +4141,7 @@ SUBDIR += py-hghooks SUBDIR += py-hgsubversion SUBDIR += py-hgtools + SUBDIR += py-http-prompt SUBDIR += py-humanize SUBDIR += py-hypothesis SUBDIR += py-icalendar diff --git a/devel/py-http-prompt/Makefile b/devel/py-http-prompt/Makefile new file mode 100644 index 000000000000..129e97e1c16c --- /dev/null +++ b/devel/py-http-prompt/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= http-prompt +PORTVERSION= 0.2.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dbaio@bsd.com.br +COMMENT= Interactive command-line HTTP client + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=5.0:devel/py-click \ + ${PYTHON_PKGNAMEPREFIX}parsimonious>=0.6.2:textproc/py-parsimonious \ + ${PYTHON_PKGNAMEPREFIX}prompt_toolkit>=0.60:devel/py-prompt_toolkit \ + ${PYTHON_PKGNAMEPREFIX}pygments>=2.1.0:textproc/py-pygments \ + ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six \ + httpie>=0.9.0:www/httpie + +NO_ARCH= yes +USES= python +USE_PYTHON= autoplist distutils + +.include <bsd.port.mk> diff --git a/devel/py-http-prompt/distinfo b/devel/py-http-prompt/distinfo new file mode 100644 index 000000000000..3e56d50d920e --- /dev/null +++ b/devel/py-http-prompt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1464089244 +SHA256 (http-prompt-0.2.0.tar.gz) = 003dd81ea7f2576db541af991e21c181b780251807c0091e696d0b8fe1b20a8d +SIZE (http-prompt-0.2.0.tar.gz) = 11381 diff --git a/devel/py-http-prompt/files/patch-http__prompt_execution.py b/devel/py-http-prompt/files/patch-http__prompt_execution.py new file mode 100644 index 000000000000..5e63b4c329e8 --- /dev/null +++ b/devel/py-http-prompt/files/patch-http__prompt_execution.py @@ -0,0 +1,11 @@ +--- http_prompt/execution.py.orig 2016-05-20 07:19:56 UTC ++++ http_prompt/execution.py +@@ -241,7 +241,7 @@ class ExecutionVisitor(NodeVisitor): + assert children[0].expr_name == 'action' + output = BytesIO() + try: +- env = Environment(stdout=output) ++ env = Environment() + httpie_main(context.httpie_args(self.method), env=env) + content = output.getvalue() + finally: diff --git a/devel/py-http-prompt/pkg-descr b/devel/py-http-prompt/pkg-descr new file mode 100644 index 000000000000..e57566e19d58 --- /dev/null +++ b/devel/py-http-prompt/pkg-descr @@ -0,0 +1,4 @@ +HTTP Prompt is an interactive command-line HTTP client featuring autocomplete +and syntax highlighting, built on HTTPie and prompt_toolkit. + +WWW: https://pypi.python.org/pypi/http-prompt |