summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2016-06-23 23:13:32 +0800
committer宋文武 <iyzsong@gmail.com>2016-06-25 20:49:59 +0800
commit22711e258580d6a13207822d2b02c5a610b1f76b (patch)
treeb236e435c440ed12b5d491e3e80c0d63e1696f68
parent5477e05f016c1d1696191e93855dfeb525f53ebd (diff)
downloadpatches-22711e258580d6a13207822d2b02c5a610b1f76b.tar
patches-22711e258580d6a13207822d2b02c5a610b1f76b.tar.gz
gnu: Add python-email-validator and python2-email-validator.
* gnu/packages/python.scm (python-email-validator) (python2-email-validator): New variables.
-rw-r--r--gnu/packages/python.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ff3cb99652..68123cc1ee 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"))))
+ (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)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/JoshData/python-email-validator")
+ (synopsis "Email address validation library for Python")
+ (description
+ "This library validates email address syntax and deliverability.")
+ (license cc0)))
+
+(define-public python2-email-validator
+ (package-with-python2 python-email-validator))
+