summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriano Peluso <catonano@gmail.com>2018-01-22 18:55:12 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2018-01-22 19:52:19 +0100
commit09b9cf7327f1cdaee31e9a176451a263d56cec5b (patch)
treef1cc4f7cd6861a6f66a9d99194b8ed84c178c085
parent974a4d5d57bac2a2516ed0960025cc6610d03bc6 (diff)
downloadpatches-09b9cf7327f1cdaee31e9a176451a263d56cec5b.tar
patches-09b9cf7327f1cdaee31e9a176451a263d56cec5b.tar.gz
gnu: Add python-phonenumbers.
* gnu/packages/python.scm (python-phonenumbers, python2-phonenumbers): New variables. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
-rw-r--r--gnu/packages/python.scm25
1 files changed, 24 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9767536124..2c2a0fde3b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -36,7 +36,7 @@
;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
-;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
+;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
@@ -12370,3 +12370,26 @@ and normal mode analysis, but also basic routines for implementing new methods
for simulation and analysis. The library is currently not actively maintained
and works only with Python 2 and NumPy < 1.9.")
(license license:cecill-c)))
+
+(define-public python-phonenumbers
+ (package
+ (name "python-phonenumbers")
+ (version "8.8.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "phonenumbers" version))
+ (sha256
+ (base32
+ "1lhhxmx3hk0b5891nc0p82dl5bq2w9cqbawmh8j5zy587af2j6fq"))))
+ (build-system python-build-system)
+ (home-page
+ "https://github.com/daviddrysdale/python-phonenumbers")
+ (synopsis
+ "Python library for dealing with international phone numbers")
+ (description
+ "This package provides a Python port of Google's libphonenumber library.")
+ (license license:asl2.0)))
+
+(define-public python2-phonenumbers
+ (package-with-python2 python-phonenumbers))