[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: gnu: Add python-pycountry.
From: |
??? |
Subject: |
01/03: gnu: Add python-pycountry. |
Date: |
Sat, 15 Sep 2018 00:19:23 -0400 (EDT) |
iyzsong pushed a commit to branch master
in repository guix.
commit 935d5ceb9bf6f8a759298521da2712db1ec12670
Author: Maxim Cournoyer <address@hidden>
Date: Wed Aug 29 00:53:34 2018 -0400
gnu: Add python-pycountry.
* gnu/packages/python.scm (python-pycountry, python2-pycountry): New
variables.
Signed-off-by: 宋文武 <address@hidden>
---
gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7a4f11b..a5da46d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10858,6 +10858,37 @@ cases.")
(define-public python2-ddt
(package-with-python2 python-ddt))
+(define-public python-pycountry
+ (package
+ (name "python-pycountry")
+ (version "18.5.26")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pycountry" version))
+ (sha256
+ (base32
+ "15q9j047s3yc9cfcxq1ch8b71f81na44cr6dydd5gxk0ki9a4akz"))))
+ (build-system python-build-system)
+ (home-page "https://bitbucket.org/flyingcircus/pycountry")
+ (synopsis "ISO databases for languages, countries, currencies, etc.")
+ (description
+ "@code{pycountry} provides the ISO databases for the standards:
address@hidden
address@hidden 639-3 (Languages)
address@hidden 3166 (Countries)
address@hidden 3166-3 (Deleted Countries)
address@hidden 3166-2 (Subdivisions of countries)
address@hidden 4217 (Currencies)
address@hidden 15924 (Scripts)
address@hidden enumerate
+It includes a copy from Debian’s pkg-isocodes and makes the data accessible
+through a Python API.")
+ (license license:lgpl2.1+)))
+
+(define-public python2-pycountry
+ (package-with-python2 python-pycountry))
+
(define-public python-pycosat
(package
(name "python-pycosat")