From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvMlx-0007CK-P0 for guix-patches@gnu.org; Thu, 30 Aug 2018 09:14:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvMlu-0004am-LY for guix-patches@gnu.org; Thu, 30 Aug 2018 09:14:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33043) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvMlu-0004aO-EG for guix-patches@gnu.org; Thu, 30 Aug 2018 09:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fvMlu-0007Sc-5e for guix-patches@gnu.org; Thu, 30 Aug 2018 09:14:02 -0400 Subject: [bug#32589] [PATCH] Add python-pycountry. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvMlN-0006xo-Pw for guix-patches@gnu.org; Thu, 30 Aug 2018 09:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvMlJ-0004EQ-Sj for guix-patches@gnu.org; Thu, 30 Aug 2018 09:13:29 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:51085) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvMlJ-0004EJ-NG for guix-patches@gnu.org; Thu, 30 Aug 2018 09:13:25 -0400 Received: by mail-it0-x235.google.com with SMTP id j81-v6so2523950ite.0 for ; Thu, 30 Aug 2018 06:13:25 -0700 (PDT) Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151]) by smtp.gmail.com with ESMTPSA id x30-v6sm1254686ita.2.2018.08.30.06.13.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 06:13:24 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 30 Aug 2018 09:13:23 -0400 Message-ID: <87wos8atfw.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32589@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, This adds pycountry. Thank you, Maxim --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-python-pycountry.patch Content-Transfer-Encoding: quoted-printable >From ea5e5b3585b5fb35b5a356a9546d85bf66f08a66 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 29 Aug 2018 00:53:34 -0400 Subject: [PATCH] gnu: Add python-pycountry. * gnu/packages/python.scm (python-pycountry): New variable. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f59e24d5f..57fa92b91 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -54,6 +54,7 @@ ;;; Copyright =C2=A9 2018 Nicolas Goaziou ;;; Copyright =C2=A9 2018 Oleg Pykhalov ;;; Copyright =C2=A9 2018 Cl=C3=A9ment Lassieur +;;; Copyright =C2=A9 2018 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -10778,6 +10779,38 @@ cases.") (define-public python2-ddt (package-with-python2 python-ddt)) =20 +(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 + "pycountry provides the ISO databases for the standards: +@enumerate +@item 639-3 (Languages) +@item 3166 (Countries) +@item 3166-3 (Deleted Countries) +@item 3166-2 (Subdivisions of countries) +@item 4217 (Currencies) +@item 15924 (Scripts) +@end enumerate +It includes a copy from Debian=E2=80=99s pkg-isocodes and makes the data a= ccessible +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") --=20 2.18.0 --=-=-=--