guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 08/10] gnu: Add python-email-validator and python2-email-vali


From: Leo Famulari
Subject: Re: [PATCH 08/10] gnu: Add python-email-validator and python2-email-validator.
Date: Sat, 25 Jun 2016 13:58:37 -0400
User-agent: Mutt/1.6.0 (2016-04-01)

On Thu, Jun 23, 2016 at 11:20:02PM +0800, 宋文武 wrote:
> * gnu/packages/python.scm (python-email-validator)
> (python2-email-validator): New variables.
> ---
>  gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index ff3cb99..68123cc 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -9468,3 +9468,35 @@ It supports TSIG authenticated messages and EDNS0.")
>  (define-public python2-dnspython
>    (package-with-python2 python-dnspython))
>  
> +(define-public python-email-validator
> +  (package
> +    (name "python-email-validator")
> +    (version "1.0.1")
> +    (source
> +     (origin (method url-fetch)
> +             (uri (pypi-uri "email_validator" version))
> +             (sha256
> +              (base32
> +               "0mn8jg5h8ifl8w6a6m0hq8kbk0mzw9vm054qfamkn89b3npz52qw"))))

The indentation should be shifted to the right.

> +    (build-system python-build-system)
> +    (arguments
> +     '(#:phases
> +       (modify-phases %standard-phases
> +         (add-before 'build 'use-dnspython
> +           (lambda _
> +             (substitute* "setup.py"
> +               (("dnspython3") "dnspython"))
> +             #t)))))
> +    (native-inputs
> +     `(("python-dnspython" ,python-dnspython)
> +       ("python-idna" ,python-idna)

Do dnspython and idna need to be native-inputs? Are they only used to
build?



reply via email to

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