From patchwork Tue Jun 7 19:11:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39779 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8D7CD27BBEA; Tue, 7 Jun 2022 20:13:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0683C27BBE9 for ; Tue, 7 Jun 2022 20:13:12 +0100 (BST) Received: from localhost ([::1]:51998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyedb-0003tf-4Y for patchwork@mira.cbaines.net; Tue, 07 Jun 2022 15:13:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyedS-0003rv-Q1 for guix-patches@gnu.org; Tue, 07 Jun 2022 15:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47662) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyedS-0002pN-Ht for guix-patches@gnu.org; Tue, 07 Jun 2022 15:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nyedS-0002bL-DZ for guix-patches@gnu.org; Tue, 07 Jun 2022 15:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55580] [PATCH] gnu: Add python-langcodes Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Jun 2022 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55580 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 55580@debbugs.gnu.org Received: via spool by 55580-submit@debbugs.gnu.org id=B55580.16546291309931 (code B ref 55580); Tue, 07 Jun 2022 19:13:02 +0000 Received: (at 55580) by debbugs.gnu.org; 7 Jun 2022 19:12:10 +0000 Received: from localhost ([127.0.0.1]:41557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyecR-0002Zf-Ao for submit@debbugs.gnu.org; Tue, 07 Jun 2022 15:12:09 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:41846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyecO-0002ZR-IA for 55580@debbugs.gnu.org; Tue, 07 Jun 2022 15:11:58 -0400 Received: by mail-lj1-f182.google.com with SMTP id 1so20291863ljp.8 for <55580@debbugs.gnu.org>; Tue, 07 Jun 2022 12:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hMoQoNFXzuMliRdQLldX57TQ/3B52tsh8y2vqz8Xjzg=; b=QLjbTd1RPpRLLbUNMQQhSL4iQxFedIHEFZKXdHfkvOPhd0REHxVC9Vqto6tCNKQ9LU Q5j+xENOII5g6vh+rFyJXmYHfxgXIC5UlJTKDCQKpH1r6dBbTmeAzvug5VF+1ra2wZQt S6P7dcPbZ7fZ1gpDmgY6L7uhrMuNYfW/OfN07u/lB0Ai1tW6FNwqJWg6IA8wx8Kw/+4m gW6HQPB3aNGUbK5Y4JqCgCBL+GwfbbRlFTu0JenujE8sejaAIbtndcVnmpuNyHRV8tdi PVe5dFMuprr4P94Xl2+Pw5E++XJw4vkUWT3t4PnwLalHHE39AsuCaaZMBz735H6AmBcO s7vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hMoQoNFXzuMliRdQLldX57TQ/3B52tsh8y2vqz8Xjzg=; b=cL2a7CBSHofkq80qREtQKMbAm42B/DnpIvI6FdQd8yndW2gSkaRh0hBz5iQSyzIUs7 a8nvaRgUFp9MW5M4/jwhxF8jYMTShmos//YvADy9jAgIjsApPq+Y9H3Bmj3YKba3owkC mkoRVlecDbt7g2SY7vXFvt44bdJ6sS30caA2zmSDeQ5+iMFtRnVUdECGdyrqOhOQjcpK ZWEQc9xuL/iBOKiTCS+m7BNuxZFVb1BoCU/MAhSKiu7gxWdahIP9l9khE4YYRzUPzbPD T0SpCXvD2ez61wOxAWSMc8b9DExLjG5eB6+e7ySQQLqElUb5/YyHLRHy4LDhlr49pb3m A9CA== X-Gm-Message-State: AOAM533wHJfXtx2jPaM2UgKCBM51vy8beQZzuk4g7fiwMmExVwNfNbYd BXUBxjZXlMA7evwMSRqX8xyYjnnoGFc= X-Google-Smtp-Source: ABdhPJwGamRoO9TJBFB/sPNYDurhWHFC6DgwtlkEhv0M0umBvPdZSxCc1WJPwS+msSy6ZP75r0KoEg== X-Received: by 2002:a2e:a374:0:b0:255:67e7:24a5 with SMTP id i20-20020a2ea374000000b0025567e724a5mr19789333ljn.58.1654629108994; Tue, 07 Jun 2022 12:11:48 -0700 (PDT) Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id d15-20020ac25ecf000000b0047255d21161sm3382481lfq.144.2022.06.07.12.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 12:11:48 -0700 (PDT) From: "Artyom V. Poptsov" References: <87leutflf9.fsf@gmail.com> <877d5vndev.fsf@gnu.org> Date: Tue, 07 Jun 2022 22:11:43 +0300 In-Reply-To: <877d5vndev.fsf@gnu.org> (Mathieu Othacehe's message of "Sun, 05 Jun 2022 21:00:40 +0200") Message-ID: <877d5sz3tc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Mathieu, thank you for the patch review. Here's the updated patch. - Artyom From fade3d87c1b64e4279787d2bb28b0e61d2b7ee61 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sun, 22 May 2022 21:50:37 +0300 Subject: [PATCH] gnu: Add python-langcodes * gnu/packages/python-xyz.scm (python-langcodes): New variable. --- gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f3d7fab973..82c2c87e4c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29403,3 +29403,32 @@ Information about these scales can be @url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on Wikipedia}.") (license license:expat))) + +(define-public python-langcodes + (package + (name "python-langcodes") + (version "3.3.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "langcodes" version)) + (sha256 + (base32 + "1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (inputs (list python)) + (home-page "https://github.com/rspeer/langcodes") + (synopsis "Python library for working with language codes") + (description + "A Python library for working with and comparing language codes. + +@code{python-langcodes} implements @url{http://tools.ietf.org/html/bcp47, BCP +47}, the IETF Best Current Practices on Tags for Identifying Languages. BCP +47 is also known as RFC 5646. It subsumes ISO 639 and is backward compatible +with it, and it also implements recommendations from the +@url{http://cldr.unicode.org/, Unicode CLDR}. + +@code{python-langcodes} can also refer to a database of language properties +and names, built from Unicode CLDR and the IANA subtag registry, if you +install @code{python-language-data}.") + (license license:expat))) -- 2.25.1