From patchwork Thu Mar 14 08:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 61795 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 92BDC27BBEA; Thu, 14 Mar 2024 08:34:01 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 A7D0727BBE9 for ; Thu, 14 Mar 2024 08:34:00 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkgWr-0000cd-4Z; Thu, 14 Mar 2024 04:33:33 -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 1rkgWp-0000cH-B9 for guix-patches@gnu.org; Thu, 14 Mar 2024 04:33:31 -0400 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 1rkgWl-00073B-Bf; Thu, 14 Mar 2024 04:33:29 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rkgXJ-0008P3-MI; Thu, 14 Mar 2024 04:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69794] [PATCH 1/2] gnu: Add python-sacremoses. Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Thu, 14 Mar 2024 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69794@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by submit@debbugs.gnu.org id=B.171040520732209 (code B ref -1); Thu, 14 Mar 2024 08:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Mar 2024 08:33:27 +0000 Received: from localhost ([127.0.0.1]:48261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkgWk-0008NQ-Tv for submit@debbugs.gnu.org; Thu, 14 Mar 2024 04:33:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:54842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rkgWi-0008NI-RU for submit@debbugs.gnu.org; Thu, 14 Mar 2024 04:33:25 -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 1rkgW8-0000XJ-Rl for guix-patches@gnu.org; Thu, 14 Mar 2024 04:32:48 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rkgW7-0006r8-3i for guix-patches@gnu.org; Thu, 14 Mar 2024 04:32:48 -0400 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E422E40D0E; Thu, 14 Mar 2024 09:32:45 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wd1Iah14QhUO; Thu, 14 Mar 2024 09:32:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1710405164; bh=rUfjq8Poq60vf4HCpnedvWKx0ImA7uV8fbQhagfO0m4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GDaKJ4FsW4A2xVhzPvJ04w5SZp3tpEa0kyrg+GTL4ISnIvaBOAKT2UyXapqd+8Bg1 bPFTk3yBlNluhg1eaaEA1kGBjG9r0o427wNk8XEc0yznZ8Hw/aUA2LJprpjv6kv3cS 2G6lML4sdtrdlNwueLC2r09mNtXLwJse3CMKgTIXhaOtaoniIvInTysAxBFhgeXo12 v8NxLxxmtoMbppjyTaBO3ae9K76QYauAQXufpNP3t6qXigz0xS4qAazGDTdVDAXVx8 Jhpy5xm7yZVB9XRRM2oc+cxyUFdgYo9oYa4m+m1tVu0Su6ex+is6nELTxyhthuIEs9 5MVz8VUS+w/4g== Date: Thu, 14 Mar 2024 17:32:22 +0900 Message-ID: <03cb7e5cac1e4af60d9e655285b76bfd8dbf76c9.1710404630.git.mcsinyx@disroot.org> In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=mcsinyx@disroot.org; helo=layka.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" 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 * gnu/packages/python-xyz.scm (python-sacremoses): New variable. Change-Id: I2c2cd94c054d7e952ffb4b3afdedd2ee8ce905bf --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 232b5d69993c..ad33d98db142 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -149,6 +149,7 @@ ;;; Copyright © 2024 Timothee Mathieu ;;; Copyright © 2024 Ian Eure ;;; Copyright © 2024 Adriel Dumas--Jondeau +;;; Copyright © 2024 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -21897,6 +21898,39 @@ (define-public python-nltk reasoning, wrappers for natural language processing libraries.") (license license:asl2.0))) +(define-public python-sacremoses + (package + (name "python-sacremoses") + (version "0.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hplt-project/sacremoses") + (commit version))) + (sha256 + (base32 + "0g70vchfniknp65n4wnx7chg6g49d4xrz1wagv7f7ir2swdzyn9b")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Skip truecaser tests which fetch https://norvig.com/big.txt + (invoke "python" "-m" "unittest" + "sacremoses/test/test_corpus.py" + "sacremoses/test/test_no_redos_has_numeric_only.py" + "sacremoses/test/test_normalizer.py" + "sacremoses/test/test_tokenizer.py"))))))) + (propagated-inputs + (list python-click-7 python-joblib python-regex python-tqdm)) + (home-page "https://github.com/hplt-project/sacremoses") + (synopsis "Natural language tokenizer, truecaser and normalizer") + (description "SacreMoses is a Python port of Moses' +tokenizer, detokenizer, truecaser and punctuation normalizer.") + (license license:expat))) + (define-public python-pymongo (package (name "python-pymongo")