all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Kyle Meyer <kyle@kyleam.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: Add docopt.
Date: Thu, 3 Dec 2015 14:31:29 -0500	[thread overview]
Message-ID: <20151203193129.GA22316@jasmine> (raw)
In-Reply-To: <1449123849-13644-1-git-send-email-kyle@kyleam.com>

On Thu, Dec 03, 2015 at 01:24:09AM -0500, Kyle Meyer wrote:
> * gnu/packages/python.scm (python-docopt, python2-docopt): New
>   variables.

Have you tested the software provided by this patch to make sure it
works? I'm not sure how to test it since it's just a library.

> ---
>  gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 45222e9..5b31ae8 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -5994,3 +5994,29 @@ automatically detect a wide range of file encodings.")
>  
>  (define-public python2-chardet
>    (package-with-python2 python-chardet))
> +
> +(define-public python-docopt
> +  (package
> +    (name "python-docopt")
> +    (version "0.6.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "docopt" version))

Nice, I haven't noticed this before. Looks like a recent addition :)

> +       (sha256
> +        (base32
> +         "14f4hn6d1j4b99svwbaji8n2zj58qicyz19mm0x6pmhb50jsics9"))))
> +    (build-system python-build-system)
> +    (inputs
> +     `(("python-setuptools" ,python-setuptools)))
> +    (arguments '(#:tests? #f))   ; Tests are not included in the PyPI release.

Are there tests in any other releases? If not, I would change the
comment to "No test suite", just to make it more clear. If yes, we
should probably package that release while asking upstream to include
the tests in the PyPi release.

> +    (home-page "http://docopt.org")
> +    (synopsis "Command-line interface description language for Python")
> +    (description "This library allows the user to define a command-line
> +interface from a program's help message rather than specifying it
> +programatically with command-line parsers like @code{getopt} and
> +@code{argparse}.")
> +    (license license:expat)))
> +
> +(define-public python2-docopt
> +  (package-with-python2 python-docopt))
> -- 
> 2.6.2
> 
> 

  reply	other threads:[~2015-12-03 19:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03  6:24 [PATCH] gnu: Add docopt Kyle Meyer
2015-12-03 19:31 ` Leo Famulari [this message]
2015-12-03 23:17   ` Kyle Meyer
2015-12-05  7:11     ` [PATCH v2] gnu: Add python-docopt Kyle Meyer
2015-12-06 21:40       ` Ludovic Courtès
2015-12-04  9:51 ` [PATCH] gnu: Add docopt Ricardo Wurmus

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=20151203193129.GA22316@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=kyle@kyleam.com \
    /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.