From unknown Sun Jun 22 07:34:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#73449] [PATCH] gnu: Add python-country-converter. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 24 Sep 2024 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73449@debbugs.gnu.org Cc: Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172717800513939 (code B ref -1); Tue, 24 Sep 2024 11:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Sep 2024 11:40:05 +0000 Received: from localhost ([127.0.0.1]:45427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st3tk-0003cl-Ue for submit@debbugs.gnu.org; Tue, 24 Sep 2024 07:40:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:58576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st3th-0003cN-Mf for submit@debbugs.gnu.org; Tue, 24 Sep 2024 07:40:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st3tI-0007ZO-PL for guix-patches@gnu.org; Tue, 24 Sep 2024 07:39:37 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1st3tF-0006PW-4J for guix-patches@gnu.org; Tue, 24 Sep 2024 07:39:35 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a8a789c4fc5so202546766b.0 for ; Tue, 24 Sep 2024 04:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727177971; x=1727782771; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lhkAkNqQxhiKliPgPstl3Q6YFsKYOklDTkWgcbF95Oc=; b=c1bimKqVbf6t0znrC0AW7CHCAcEuJYunL+Cy+boPxfatcNvolpomlTmGxtxUMtBVLb d9aPJi/uS/072+/vzkyPQpovG2jP+SRcCox2Wpq1G0HGD1OlbFrZncESJScEOl8klwUR 6/wucSZ011r7L4yrXU9O5btLa8v4jGUgiumdJOALSX5/SVWYY/Y58cIAaZUxXJaXw5Jp /R0xOrIER3CPMFwgpn5qWeA0TRzfM36q5oW6jl7p7GJqWQRVi50rLD0epIlDASQjGEHU 4h5pJFb9GBShv5xoC7Fmd5sKUJms+W+Z9BZkpBp5XzUKfg8rOoDRSWQfmttISsFNR/TH rSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727177971; x=1727782771; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lhkAkNqQxhiKliPgPstl3Q6YFsKYOklDTkWgcbF95Oc=; b=KfzCK9FjfTHO8MhrU9YCOfAD1A9zAjOLsjRVEPiQrDA5FZJj+22swpLIt1PvdV8ggm WRBoj/y3EbJ/8JWk4KZVqSzUsev3KIquImVfAt07GnzcJNjXt2efYlxll7GX4OnLJNLj 8DnQIsRtUSTMWNdRwH1TlOTxlQ1eJqZB5RewkahBZoCMYdnzn6vSmggRoEOlAjQq+eZR Uo1p9B6G4mFA5NoN38NN12oxF3m0sIjH/Mqn21vcFgelfmdJVoIO1cg4i2sKOzUepONT OO01f04QeZAdZjG2UgvLL8QP+PYb3GKHwqsyxagZgyyVppnU6soIaYLZBR/Hj8Crodi+ 31HQ== X-Gm-Message-State: AOJu0Yy3/4ltrONTuH8PSjbyjY7l4mxSYJ7oB6aGjUokClDDvlfcXTEU U/fXjMlL6bTOtUtoWFFJGyZsu/m4Tyo0slozYP0hRTkFQAikToAwQkbHSPao X-Google-Smtp-Source: AGHT+IGPE4INgAbLDFJ5fb2DRPmm/XD94MxDl8+2ftLsaIJKpH98xUf7kC5jyGvbB1cNIwYXAN7IZw== X-Received: by 2002:a17:906:f5a0:b0:a8d:2b86:d76a with SMTP id a640c23a62f3a-a92d55cc92bmr286224666b.32.1727177970756; Tue, 24 Sep 2024 04:39:30 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93930c8a8bsm73767866b.131.2024.09.24.04.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 04:39:30 -0700 (PDT) From: Sharlatan Hellseher Date: Tue, 24 Sep 2024 12:39:25 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=sharlatanus@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/iso-codes.scm (python-country-converter): New variable. Change-Id: Ib40f94c22b297de02a2ab16b143dcfa59e3a5bdd --- gnu/packages/iso-codes.scm | 44 +++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm index d2bace6a3c..746f3ce0ba 100644 --- a/gnu/packages/iso-codes.scm +++ b/gnu/packages/iso-codes.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2013 Cyril Roelandt ;;; Copyright © 2016, 2019 Efraim Flashner ;;; Copyright © 2018, 2022 Tobias Geerinckx-Rice +;;; Copyright © 2024 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,9 +26,12 @@ (define-module (gnu packages iso-codes) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) + #:use-module (gnu packages check) #:use-module (gnu packages gettext) #:use-module (gnu packages perl) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages python-science)) (define-public iso-codes/official ;; This package variant is intended for ‘external’ use, such as users running @@ -87,6 +91,44 @@ (define-public iso-codes (("(Taiwan), [^\"]*" _ name) name)))))) (synopsis "Various ISO standards as used by GNU@tie{}Guix")))) +(define-public python-country-converter + (package + (name "python-country-converter") + (version "1.2") + (source + (origin + (method git-fetch) ;no test data in PyPI archive + (uri (git-reference + (url "https://github.com/IndEcol/country_converter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i1nlbahfwgx1f5q4ib32539xmc694834s0flzp0wlki0hwzd4rd")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-pandas)) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/IndEcol/country_converter") + (synopsis "Auto conversion from different country name standards") + (description + "The country converter (coco) automates the conversion from different +standards and version of country names. Internally, coco is based on a table +specifying the different ISO and UN standards per country together with the +official name and a regular expression which aim to match all English versions +of a specific country name. In addition, coco includes classification based +on UN-, EU-, OECD-membership, UN regions specifications, continents and +various MRIO and IAM databases. + +Supported classification schemas: APEC, BASIC, BRIC, CC41, CIS, Cecilia 2050 +classification, DACcode, EEA membership, EU membership, EXIOBASE 1 +classification, EXIOBASE 2 classification, EXIOBASE 3 classification, Eora, +FAOcode, G20, G7, GBDcode, GWcode, IEA, IMAGE, IOC ISO 3166-1 alpha-2, ISO +3166-1 alpha-3, ISO 3166-1 numeric, MESSAGE 11-region classification, OECD +membership, REMIND, Schengen region, UN membership, UN numeric code, UN +region, WIOD classification, ccTLD.") + (license license:gpl3))) + (define-public python-iso639 (package (name "python-iso639") base-commit: 75824be1ac60b39e123e6ee9617a64bbf2ee4add -- 2.46.0 From unknown Sun Jun 22 07:34:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Sharlatan Hellseher Subject: bug#73449: closed ([PATCH] gnu: Add python-country-converter.) Message-ID: References: <877caq6tzc.fsf@gmail.com> X-Gnu-PR-Message: they-closed 73449 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 73449@debbugs.gnu.org Date: Wed, 02 Oct 2024 22:07:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1727906821-17217-1" This is a multi-part message in MIME format... ------------=_1727906821-17217-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73449: [PATCH] gnu: Add python-country-converter. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 73449@debbugs.gnu.org. --=20 73449: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73449 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1727906821-17217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73449-done) by debbugs.gnu.org; 2 Oct 2024 22:06:49 +0000 Received: from localhost ([127.0.0.1]:59440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw7Uf-0004TI-BK for submit@debbugs.gnu.org; Wed, 02 Oct 2024 18:06:49 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:53415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw7Ud-0004TA-HC for 73449-done@debbugs.gnu.org; Wed, 02 Oct 2024 18:06:48 -0400 Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2fac6b3c220so3825581fa.2 for <73449-done@debbugs.gnu.org>; Wed, 02 Oct 2024 15:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727906745; x=1728511545; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5p2vLcqM/yQmtCNClHZ1vdcj5z0PwcODj3D9Ic3wNN8=; b=bTSTxZq9P3aIJNNSEh3V0viVk+khwoXEQtfvds8M2F8t/TBOjGDxVKtazCz3k7l7i6 FkMPlTJ3gn7Hin+dDZFlUI7Tlps+bAXBkUhvGk5isMArfniplpu8YsuX0doqikXvctX/ EkpvsxXtvtWW3kCqxETE4/2LunS5W9nkymBY2FgP2n3Ke1TdrcomjCdbxituWZl0/Acf CqLvEf1Qmk5iQwFgFjiJHDl8jpQT72L/VGZth8gf2TISGBHBgM+IXyOh1mfp9uVxMqLk eKomQ5iFsMJ4xCOTnPbfOe5k2L8hB8pl9fyLnfQojdv9N0Eid13M1hSP7u2j/FCh9I8R y2Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727906745; x=1728511545; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5p2vLcqM/yQmtCNClHZ1vdcj5z0PwcODj3D9Ic3wNN8=; b=GEnIZ3e0CdlB8d7sbeur/7M+KjgoE/pK5DQ1cDjfJHhy+w0YWvxxO7J8IPwjE/oPnA Po8WlE5RrpFiTFNyzrPD474Oof3xJ9S/Fz56kwQc1Sii64cN5QWVyIsajJqzMCn+dOgf TYXLiLFiJR9AtSBJJN+MrcDVe3lERpk4pQqmszedKw4xdtpc8E01pEloz6P4q9D5aE+1 HfLwufoK/dCS7GLejtgrhqxXreyGGtiIxF5pv3tMsGOvJ9+/7v190g8srUO+qxFDildQ YZclgcyHyF8ODMBLTdRQktuNAkhVvvZizvbbiX47f7q38+hiRxHGiu3PmThWqzD8rLR6 tjxw== X-Gm-Message-State: AOJu0YyGL29s69U7A9JrevYCmUOJyMvmW4XJJ2oQoqSVJySO8k581hgq EstEMf4cJN/MBBPprfMe9OwNP9wbKNaYJgSfr53f490x35SOOlGq2KLoY+yq X-Google-Smtp-Source: AGHT+IEI18e2fU8yyARgAAStTye3ifJkAg/m27WAkS5rE3yusKvEHHORJg63lEkzayTOXYbfPBcsjw== X-Received: by 2002:a2e:a9a5:0:b0:2f3:f1ee:2256 with SMTP id 38308e7fff4ca-2fae10b46a2mr45206271fa.44.1727906745317; Wed, 02 Oct 2024 15:05:45 -0700 (PDT) Received: from guxtil (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c297a647sm920721966b.152.2024.10.02.15.05.44 for <73449-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 15:05:44 -0700 (PDT) From: Sharlatan Hellseher To: 73449-done@debbugs.gnu.org Subject: [PATCH] gnu: Add python-country-converter. Date: Wed, 02 Oct 2024 23:05:43 +0100 Message-ID: <877caq6tzc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73449-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Pushed as 308877be17b2c2c92d972e105e8cc6a782ab4c82 to mster. -- Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmb9w7cACgkQdtcnv/Ys 0rXdkQ//ez8Kjl364LqeD1L8G/LbuCF/Vy1ebOPv4zXDhJf5yGxuSthmHKR1GQGn Hv/gg2P73SNstyGphh6cJdfABIja2/AZhi34Fj6WMTrhJUGyuCzfnMyQo3OqHFJM WPeZN6yrcgFk7tDH1Cz5Nz9feInauNGuLsXhUBwl89YnkhixyRKEhg+BjDmKn+2i IAc0mRJzt7zeEZJP7bu5jA5WfL4esM/TEor/Nsg8BUES5Rh0aDb8JqUzGxR2plyk eXICOLgq623hL0Y29BpMX08qnt0RfGr0cXOIeTsRpHGvY6sKwKSKNl392sdmFAlM hrpI8jFkmJJjngFnBf6gliCZUoydoR2PPgeNpAPa+oqpU0hRV2AEwKcPph2QX1T2 LDbT2qdLQSTlUyM14mGlTn76txU8d08TW3gzKa0fuPx/CUqiNyOXm7wWgxFnCysk BsOpQ0LKNw8p4x6/gLdThwpHTLr/ms/oK69/swon39N0ISe+fCssOd5qW5y/jXSl f2n3cngXaYYJlFyvrSnDH91arMSencuhQ0KyO8Tdwlr/+4fgKTb5/XwGgflI9SwU LBIJoxPsB/USDfGfLDF6nBkjSuCGJeMZ2Vdj40KhGppfS62QeeAiwfXSn5FpYl8P f0MDPrlWI4Y1zTaPBfavmcCVBZxAwJYsLFsr6I8B32ahXvY6184= =WPv7 -----END PGP SIGNATURE----- --=-=-=-- ------------=_1727906821-17217-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Sep 2024 11:40:05 +0000 Received: from localhost ([127.0.0.1]:45427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st3tk-0003cl-Ue for submit@debbugs.gnu.org; Tue, 24 Sep 2024 07:40:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:58576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1st3th-0003cN-Mf for submit@debbugs.gnu.org; Tue, 24 Sep 2024 07:40:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st3tI-0007ZO-PL for guix-patches@gnu.org; Tue, 24 Sep 2024 07:39:37 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1st3tF-0006PW-4J for guix-patches@gnu.org; Tue, 24 Sep 2024 07:39:35 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a8a789c4fc5so202546766b.0 for ; Tue, 24 Sep 2024 04:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727177971; x=1727782771; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lhkAkNqQxhiKliPgPstl3Q6YFsKYOklDTkWgcbF95Oc=; b=c1bimKqVbf6t0znrC0AW7CHCAcEuJYunL+Cy+boPxfatcNvolpomlTmGxtxUMtBVLb d9aPJi/uS/072+/vzkyPQpovG2jP+SRcCox2Wpq1G0HGD1OlbFrZncESJScEOl8klwUR 6/wucSZ011r7L4yrXU9O5btLa8v4jGUgiumdJOALSX5/SVWYY/Y58cIAaZUxXJaXw5Jp /R0xOrIER3CPMFwgpn5qWeA0TRzfM36q5oW6jl7p7GJqWQRVi50rLD0epIlDASQjGEHU 4h5pJFb9GBShv5xoC7Fmd5sKUJms+W+Z9BZkpBp5XzUKfg8rOoDRSWQfmttISsFNR/TH rSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727177971; x=1727782771; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lhkAkNqQxhiKliPgPstl3Q6YFsKYOklDTkWgcbF95Oc=; b=KfzCK9FjfTHO8MhrU9YCOfAD1A9zAjOLsjRVEPiQrDA5FZJj+22swpLIt1PvdV8ggm WRBoj/y3EbJ/8JWk4KZVqSzUsev3KIquImVfAt07GnzcJNjXt2efYlxll7GX4OnLJNLj 8DnQIsRtUSTMWNdRwH1TlOTxlQ1eJqZB5RewkahBZoCMYdnzn6vSmggRoEOlAjQq+eZR Uo1p9B6G4mFA5NoN38NN12oxF3m0sIjH/Mqn21vcFgelfmdJVoIO1cg4i2sKOzUepONT OO01f04QeZAdZjG2UgvLL8QP+PYb3GKHwqsyxagZgyyVppnU6soIaYLZBR/Hj8Crodi+ 31HQ== X-Gm-Message-State: AOJu0Yy3/4ltrONTuH8PSjbyjY7l4mxSYJ7oB6aGjUokClDDvlfcXTEU U/fXjMlL6bTOtUtoWFFJGyZsu/m4Tyo0slozYP0hRTkFQAikToAwQkbHSPao X-Google-Smtp-Source: AGHT+IGPE4INgAbLDFJ5fb2DRPmm/XD94MxDl8+2ftLsaIJKpH98xUf7kC5jyGvbB1cNIwYXAN7IZw== X-Received: by 2002:a17:906:f5a0:b0:a8d:2b86:d76a with SMTP id a640c23a62f3a-a92d55cc92bmr286224666b.32.1727177970756; Tue, 24 Sep 2024 04:39:30 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93930c8a8bsm73767866b.131.2024.09.24.04.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 04:39:30 -0700 (PDT) From: Sharlatan Hellseher To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-country-converter. Date: Tue, 24 Sep 2024 12:39:25 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=sharlatanus@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Sharlatan Hellseher X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/iso-codes.scm (python-country-converter): New variable. Change-Id: Ib40f94c22b297de02a2ab16b143dcfa59e3a5bdd --- gnu/packages/iso-codes.scm | 44 +++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/gnu/packages/iso-codes.scm b/gnu/packages/iso-codes.scm index d2bace6a3c..746f3ce0ba 100644 --- a/gnu/packages/iso-codes.scm +++ b/gnu/packages/iso-codes.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2013 Cyril Roelandt ;;; Copyright © 2016, 2019 Efraim Flashner ;;; Copyright © 2018, 2022 Tobias Geerinckx-Rice +;;; Copyright © 2024 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,9 +26,12 @@ (define-module (gnu packages iso-codes) #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) + #:use-module (gnu packages check) #:use-module (gnu packages gettext) #:use-module (gnu packages perl) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages python-science)) (define-public iso-codes/official ;; This package variant is intended for ‘external’ use, such as users running @@ -87,6 +91,44 @@ (define-public iso-codes (("(Taiwan), [^\"]*" _ name) name)))))) (synopsis "Various ISO standards as used by GNU@tie{}Guix")))) +(define-public python-country-converter + (package + (name "python-country-converter") + (version "1.2") + (source + (origin + (method git-fetch) ;no test data in PyPI archive + (uri (git-reference + (url "https://github.com/IndEcol/country_converter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0i1nlbahfwgx1f5q4ib32539xmc694834s0flzp0wlki0hwzd4rd")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-pandas)) + (native-inputs + (list python-pytest)) + (home-page "https://github.com/IndEcol/country_converter") + (synopsis "Auto conversion from different country name standards") + (description + "The country converter (coco) automates the conversion from different +standards and version of country names. Internally, coco is based on a table +specifying the different ISO and UN standards per country together with the +official name and a regular expression which aim to match all English versions +of a specific country name. In addition, coco includes classification based +on UN-, EU-, OECD-membership, UN regions specifications, continents and +various MRIO and IAM databases. + +Supported classification schemas: APEC, BASIC, BRIC, CC41, CIS, Cecilia 2050 +classification, DACcode, EEA membership, EU membership, EXIOBASE 1 +classification, EXIOBASE 2 classification, EXIOBASE 3 classification, Eora, +FAOcode, G20, G7, GBDcode, GWcode, IEA, IMAGE, IOC ISO 3166-1 alpha-2, ISO +3166-1 alpha-3, ISO 3166-1 numeric, MESSAGE 11-region classification, OECD +membership, REMIND, Schengen region, UN membership, UN numeric code, UN +region, WIOD classification, ccTLD.") + (license license:gpl3))) + (define-public python-iso639 (package (name "python-iso639") base-commit: 75824be1ac60b39e123e6ee9617a64bbf2ee4add -- 2.46.0 ------------=_1727906821-17217-1--