Subject: bug#25733: [PATCH 09/18] gnu: Add python-routes-1.13.

From: Ricardo Wurmus <[email-masked]>
Date: Sat, 18 Feb 2017 13:16:42 +0100

[email-masked] writes:

> From: ng0 <[email-masked]>
>
> * gnu/packages/python.scm (python-routes-1.13): New variable.
> ---
>  gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index d37bcbc6b..7c02f86f1 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -2087,6 +2087,33 @@ result back.")
>      (package
>        (inherit base))))
>  
> +;; Required by kallithea-0.3.2
> +(define-public python-routes-1.13
> +  (package
> +    (inherit python-routes)
> +    (version "1.13")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "Routes" version))
> +       (sha256
> +        (base32
> +         "19r4yr4nyz8iw3ykp8mc93xjlaybjgzyi7lhwf1azdydayix20yc"))))
> +    (inputs
> +     `(("python-repoze-lru" ,python-repoze-lru)
> +       ("python-six" ,python-six)
> +       ("python-coverage" ,python-coverage)
> +       ("python-webob" ,python-webob)
> +       ("python-webtest" ,python-webtest)
> +       ("python-nose" ,python-nose)
> +       ("python-paste" ,python-paste)))))

No need to override the inputs (which should be propagated) here.  Just
inherit them.

> +(define-public python2-routes-1.13
> +  (let ((base (package-with-python2
> +               (strip-python2-variant python-routes-1.13))))
> +    (package
> +      (inherit base))))
> +

See my comments on similar cases in your other patches.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net