From: Federico Beffa <beffa@ieee.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH 1/3] gnu: Add python-testlib and python2-testlib.
Date: Thu, 26 Feb 2015 20:52:14 +0100 [thread overview]
Message-ID: <CAKrPhPNKW_eL8kXTEbeFNOnRQBanLDpx+8Zz2BcnAxtTk7pUfw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0001-gnu-Add-python-testlib-and-python2-testlib.patch --]
[-- Type: text/x-diff, Size: 2031 bytes --]
From c803c8fb3c6033d7bd96a49c61e7b38367b175fb Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Wed, 25 Feb 2015 20:33:39 +0100
Subject: [PATCH 1/3] gnu: Add python-testlib and python2-testlib.
* gnu/packages/python.scm (python-testlib, python2-testlib): New variables.
---
gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 36acfc0..56c5cda 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2947,3 +2947,39 @@ implementation of D-Bus.")
;; FIXME: on Python 2, the test_utf8 fails with:
;; "ValueError: unichr() arg not in range(0x10000) (narrow Python build)"
(arguments `(#:tests? #f))))
+
+(define-public python-testlib
+ (package
+ (name "python-testlib")
+ (version "0.6.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/t/testlib/testlib-"
+ version ".zip"))
+ (sha256
+ (base32 "1mz26cxn4x8bbgv0rn0mvj2z05y31rkc8009nvdlb3lam5b4mj3y"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (arguments
+ `(#:phases
+ (alist-replace
+ 'unpack
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((unzip (string-append (assoc-ref inputs "unzip")
+ "/bin/unzip"))
+ (source (assoc-ref inputs "source")))
+ (and (zero? (system* unzip source))
+ (chdir (string-append "testlib-" ,version)))))
+ %standard-phases)))
+ (synopsis "Python micro test suite harness")
+ (description "A micro unittest suite harness for Python.")
+ (home-page "https://github.com/trentm/testlib")
+ (license expat)))
+
+(define-public python2-testlib
+ (package-with-python2 python-testlib))
--
2.2.1
reply other threads:[~2015-02-26 19:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAKrPhPNKW_eL8kXTEbeFNOnRQBanLDpx+8Zz2BcnAxtTk7pUfw@mail.gmail.com \
--to=beffa@ieee.org \
--cc=guix-devel@gnu.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.