From: 宋文武 <iyzsong@gmail.com>
To: guix-devel@gnu.org
Cc: 宋文武 <iyzsong@gmail.com>
Subject: [PATCH 10/10] gnu: Add python-fake-factory and python2-fake-factory.
Date: Thu, 23 Jun 2016 23:20:04 +0800 [thread overview]
Message-ID: <20160623152004.24065-6-iyzsong@gmail.com> (raw)
In-Reply-To: <20160623152004.24065-1-iyzsong@gmail.com>
* gnu/packages/python.scm (python-fake-factory, python2-fake-factory):
New variables.
---
gnu/packages/python.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 50d9ee9..7f3f95d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9522,3 +9522,50 @@ parsing UK postcodes.")
(define-public python2-ukpostcodeparser
(package-with-python2 python-ukpostcodeparser))
+
+(define-public python-fake-factory
+ (package
+ (name "python-fake-factory")
+ (version "0.5.7")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "fake-factory" version))
+ (sha256
+ (base32
+ "1chmarnrdzn4r017n8qlic0m0bbnhw04s3hkwribjvm3mqpb6pa0"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'disable-failing-test
+ ;; XXX: faker/tests/ne_np/__init__.py, line 40, in test_names
+ ;; first_name, last_name = name.split()
+ ;; ValueError: too many values to unpack (expected 2)
+ (lambda _
+ (delete-file "faker/tests/ne_np/__init__.py")
+ #t)))))
+ (native-inputs
+ `(("python-dateutil" ,python-dateutil-2)
+ ("python-setuptools" ,python-setuptools)
+ ("python-six" ,python-six)
+ ;; For testing
+ ("python-email-validator" ,python-email-validator)
+ ("python-mock" ,python-mock)
+ ("python-ukpostcodeparser" ,python-ukpostcodeparser)))
+ (home-page "http://github.com/joke2k/faker")
+ (synopsis "Python package that generates fake data")
+ (description
+ "Faker is a Python package that generates fake data such as names,
+addresses, and phone numbers.")
+ (license license:expat)
+ (properties `((python2-variant . ,(delay python2-fake-factory))))))
+
+(define-public python2-fake-factory
+ (let ((base (package-with-python2 (strip-python2-variant
+ python-fake-factory))))
+ (package
+ (inherit base)
+ (native-inputs
+ `(("python2-ipaddress" ,python2-ipaddress)
+ ,@(package-native-inputs base))))))
+
--
2.8.4
next prev parent reply other threads:[~2016-06-23 15:20 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
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 ` 宋文武 [this message]
2016-06-25 17:58 ` [PATCH 10/10] gnu: Add python-fake-factory and python2-fake-factory 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
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=20160623152004.24065-6-iyzsong@gmail.com \
--to=iyzsong@gmail.com \
--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 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).