all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@member.fsf.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 08/10] gnu: Add python-email-validator and python2-email-validator.
Date: Sun, 26 Jun 2016 23:03:43 +0200	[thread overview]
Message-ID: <87y45rk6hc.fsf@gnu.org> (raw)
In-Reply-To: <8737o04qkz.fsf@member.fsf.org> ("宋文武"'s message of "Sun, 26 Jun 2016 10:43:56 +0800")

iyzsong@member.fsf.org (宋文武) skribis:

> Leo Famulari <leo@famulari.name> writes:
>
>> 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.
> OK.
>
>>
>>> +    (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?
> They're needed at runtime, and included in the pth file.
> But I'm not sure whether or not inputs for python should be
> native-inputs, I never cross build python modules for other
> architertures.

If they’re used at run time, they’re not ‘native-inputs’.  (In practice
we cannot cross-compile Python stuff currently, so this is largely a
theoretical concern, but it doesn’t cost much to get it right.)

> Should I put dnspython and idna into inputs, or propagated-inputs?

If the installed code “import”s them, then they should be propagated.

Ludo’.

  reply	other threads:[~2016-06-26 21:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-23 15:19 [PATCH 05/10] gnu: Add python-cleo and python2-cleo 宋文武
2016-06-23 15:20 ` [PATCH 06/10] gnu: Add python-lazy-object-proxy and python2-lazy-object-proxy 宋文武
2016-06-23 15:20 ` [PATCH 07/10] gnu: Add python-dnspython and python2-dnspython 宋文武
2016-06-23 15:20 ` [PATCH 08/10] gnu: Add python-email-validator and python2-email-validator 宋文武
2016-06-25 17:58   ` Leo Famulari
2016-06-26  2:43     ` 宋文武
2016-06-26 21:03       ` Ludovic Courtès [this message]
2016-06-27 14:22         ` 宋文武
2016-06-28 12:28           ` Python and propagated inputs Ludovic Courtès
2016-06-23 15:20 ` [PATCH 09/10] gnu: Add python-ukpostcodeparser and python2-ukpostcodeparser 宋文武
2016-06-23 15:20 ` [PATCH 10/10] gnu: Add python-fake-factory and python2-fake-factory 宋文武
2016-06-25 17:58   ` Leo Famulari
2016-06-26  2:09     ` 宋文武
2016-06-25 17:58 ` [PATCH 05/10] gnu: Add python-cleo and python2-cleo Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y45rk6hc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=iyzsong@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.