From: Alex Kost <alezost@gmail.com>
To: Marius Bakke <mbakke@fastmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH v2] gnu: Add python-odfpy.
Date: Fri, 02 Sep 2016 11:39:53 +0300 [thread overview]
Message-ID: <8737li4rvq.fsf@gmail.com> (raw)
In-Reply-To: <87h99zr5kb.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Thu, 01 Sep 2016 16:41:08 +0100")
Marius Bakke (2016-09-01 18:41 +0300) wrote:
> From f1bccf9bf26088107b6fec31eece30676d5a362f Mon Sep 17 00:00:00 2001
> From: Marius Bakke <mbakke@fastmail.com>
> Date: Wed, 17 Aug 2016 17:45:24 +0100
> Subject: [PATCH] gnu: Add python-odfpy.
>
> * gnu/packages/python.scm (python-odfpy, python2-odfpy): New variables.
[...]
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + ;; The test runner invokes python2 and python3 for test*.py.
> + ;; To avoid having both in inputs, we replicate it here.
> + (lambda _
> + (for-each (lambda (test-file)
'every' procedure should be used here instead: 'for-each' is for side
effects only, its returned value is unspecified; and with 'every', the
check phase will fail if any of the tests fails.
And since 'every' is from (srfi srfi-1) module, we need to use it in
'arguments', like this:
#:modules ((srfi srfi-1)
(guix build python-build-system)
(guix build utils))
The rest looks good to me, so if there will be no other comments, I will
commit it in several days, thanks!
> + (zero? (system* "python" test-file)))
> + (find-files "tests" "^test.*\\.py$")))))))
> + (build-system python-build-system)
> + (home-page "https://github.com/eea/odfpy")
> + (synopsis "Python API and tools to manipulate OpenDocument files")
> + (description "Collection of libraries and utility programs written in
> +Python to manipulate OpenDocument 1.2 files.")
> + (license
> + ;; The software is mainly dual GPL2+ and ASL2.0, but includes a
> + ;; number of files with different licenses.
> + (list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
> +
> +(define-public python2-odfpy
> + (package-with-python2 python-odfpy))
--
Alex
next prev parent reply other threads:[~2016-09-02 8:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-01 15:41 [PATCH v2] gnu: Add python-odfpy Marius Bakke
2016-09-02 8:39 ` Alex Kost [this message]
2016-09-02 11:55 ` Marius Bakke
2016-09-04 7:34 ` Alex Kost
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737li4rvq.fsf@gmail.com \
--to=alezost@gmail.com \
--cc=guix-devel@gnu.org \
--cc=mbakke@fastmail.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).