From patchwork Sun Feb 2 11:06:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adriano Peluso X-Patchwork-Id: 38176 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 5484527BBE9; Sun, 2 Feb 2025 11:08:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS 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 99C6427BBE2 for ; Sun, 2 Feb 2025 11:08:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1teXph-0004Hb-Jn; Sun, 02 Feb 2025 06:08:11 -0500 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 1teXpa-0004HH-PR for guix-patches@gnu.org; Sun, 02 Feb 2025 06:08:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1teXpa-0004l6-Ga for guix-patches@gnu.org; Sun, 02 Feb 2025 06:08:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=+GogVpYSle+UaCRHpyCrvTRhVDuQWZNOu71U4ppUhxI=; b=BVvljJZCZ9AszwOmV3Rcg/xPk8XwPP5qfNz5BOIFA5Vh80nCs435Aax2nPWwBzdS/ZzmxYFMYjrmsW9LEmWNICrsl4RvWXsXPpRTdsHL25qiIjIEL2MLsiQhgCVz/5CEfubsK58a9mLLpBb3SGVGyANoi261qk1FOcmOKq07kpA0QQR7cujJkBMYhp2JPHvyd4Dm+qpochB7wP3vul76JGfsB1kcai+yxFxVqlG/DTjQQb+zLb2pasJrVfX5LEmiC0xj68LuABJdVjfuAmgb0c57HfS5w5gWAS69eSvGVf9resnrvCrLxTl4hKH4hhyZaT5Q2TvNaNz7jLZQkHlO9g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1teXpa-00051s-BZ for guix-patches@gnu.org; Sun, 02 Feb 2025 06:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76006] [PATCH python-team] Add python-num2words References: <82f1cb5d-ec08-42c5-ac34-ae646f3af24a@riseup.net> In-Reply-To: <82f1cb5d-ec08-42c5-ac34-ae646f3af24a@riseup.net> Resent-From: Adriano Peluso Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2025 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76006@debbugs.gnu.org Received: via spool by 76006-submit@debbugs.gnu.org id=B76006.173849442519258 (code B ref 76006); Sun, 02 Feb 2025 11:08:02 +0000 Received: (at 76006) by debbugs.gnu.org; 2 Feb 2025 11:07:05 +0000 Received: from localhost ([127.0.0.1]:33297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1teXoe-00050Y-Tz for submit@debbugs.gnu.org; Sun, 02 Feb 2025 06:07:05 -0500 Received: from mx0.riseup.net ([198.252.153.6]:41314) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1teXoc-0004zz-Au for 76006@debbugs.gnu.org; Sun, 02 Feb 2025 06:07:02 -0500 Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Ym6Jw432Pz9sRp for <76006@debbugs.gnu.org>; Sun, 2 Feb 2025 11:06:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1738494416; bh=+GogVpYSle+UaCRHpyCrvTRhVDuQWZNOu71U4ppUhxI=; h=Date:To:From:Subject:From; b=fRtnTana6vKoZFUqAEMxqqTAs9U7Vg0E2YBqOsE7UCQ+MzrLWEBBk81E/KVK2aUZu zKhrpSr8DS4ECuymtdXv4k9s33YMi97DVn7ceBvCGw+VGcWw/DSvBmMDFJ65vCCev/ XoVVP/AVX2+DhFe6/gaxxnkJwNTHmRarKqvDplTY= X-Riseup-User-ID: 7461602B962D8B1257AF5FA87135E04B9B8FB478AA29F05CC37332A170C8350A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4Ym6Jw0qdYzJrTh for <76006@debbugs.gnu.org>; Sun, 2 Feb 2025 11:06:55 +0000 (UTC) Message-ID: Date: Sun, 2 Feb 2025 12:06:54 +0100 MIME-Version: 1.0 Content-Language: it From: Adriano Peluso 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From db0cb5f2063fa50d8e957701766322c8c9968696 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: <9dabb3a76c0e7a379b60f9638e934031260e9de4.1738493189.git.adriano_peluso@riseup.net> References: <9dabb3a76c0e7a379b60f9638e934031260e9de4.1738493189.git.adriano_peluso@riseup.net> From: Adriano Peluso Date: Sun, 2 Feb 2025 11:08:27 +0100 Subject: [PATCH 2/2] gnu: Add python-num2words * gnu/packages/python-xyz.scm (python-num2words): New variable Change-Id: I1217a168635802bf2e1625c8e2dd00fda5285fdf --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b4b233d464..6c62661214 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9247,6 +9247,30 @@ (define-public python-cython-3 python-wheel)) (properties '()))) +(define-public python-num2words + (package + (name "python-num2words") + (version "0.5.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "num2words" version)) + (sha256 + (base32 "1ikryc61qig04xhs69mjd24amyxagmsbb1l0nfiicrkbwlcfqrmh")))) + (build-system pyproject-build-system) + ;;the tests + ;; 1) require python-pip + ;; 2) look for /etc/ssl/certs/ca-certificates.crt + (arguments (list #:tests? #false)) + (propagated-inputs (list python-docopt)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/savoirfairelinux/num2words") + (synopsis "Modules to convert numbers to words. Easily extensible") + (description "A library that converts numbers like 42 to words like forty-two. +It supports multiple languages and can even generate ordinal numbers like forty-second +(although this last feature is a bit buggy for some languages at the moment).") + (license license:gpl2))) + ;; NOTE: when upgrading numpy please make sure that python-numba, ;; python-pandas and python-scipy still build, as these three packages are ;; often used together.