guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/9] gnu: Add python-httpbin.


From: Maxim Cournoyer
Subject: Re: [PATCH 3/9] gnu: Add python-httpbin.
Date: Sun, 05 Feb 2017 15:16:15 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi ng0,

address@hidden writes:

> From: ng0 <address@hidden>
>
> * gnu/packages/web.scm (python-httpbin): New variable.
> ---
>  gnu/packages/web.scm | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 1803f58e9..244672c9d 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -4044,3 +4044,37 @@ used to start services with both privileged and 
> non-privileged port numbers.")
>  
>  (define-public python2-gunicorn
>    (package-with-python2 python-gunicorn))
> +
> +(define-public python-httpbin
> +  (package
> +    (name "python-httpbin")
> +    (version "0.5.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "httpbin" version))
> +       (sha256
> +        (base32
> +         "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
> +    (build-system python-build-system)
> +    (inputs
> +     `(("python-decorator" ,python-decorator)
> +       ("python-flask" ,python-flask)
> +       ("python-gevent" ,python-gevent)
> +       ("python-greenlet" ,python-greenlet)
> +       ("python-gunicorn" ,python-gunicorn)
> +       ("python-itsdangerous" ,python-itsdangerous)
> +       ("python-jinja2" ,python-jinja2)
> +       ("python-markupsafe" ,python-markupsafe)
> +       ("python-six" ,python-six)
> +       ("python-werkzeug" ,python-werkzeug)))

Shouldn't those be propagated-inputs, as recommended in the guix texinfo
manual for the new python-build-system?

> +    (home-page "https://httpbin.org/";)
> +    (synopsis "HTTP Request and Response Service")
> +    (description
> +     "@code{httpbin} covers all kinds of HTTP scenarios for testing
> +HTTP libraries.  Additional endpoints are being considered.
> +All endpoint responses are JSON-encoded, it can be run as a WSGI App.")
> +    (license l:expat)))
> +
> +(define-public python2-httpbin
> +  (package-with-python2 python-httpbin))

Regards,

Maxim

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]