From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0FK5KHm28mUJ3gAAqHPOHw:P1 (envelope-from ) for ; Thu, 14 Mar 2024 09:34:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0FK5KHm28mUJ3gAAqHPOHw (envelope-from ) for ; Thu, 14 Mar 2024 09:34:01 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=GDaKJ4Fs; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710405241; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Hf3qThLf0mBWExEDO1k30kAN0sClHfe3HoAEAQBospc=; b=inwCTaVtF9lwymjkfraIsK1NlBBxL/blCa7PITcMr3VNaqKJqfEYAvOZuaUmdnx5iheeax BOJ7q3PdackTYsdWABxoGG2KTTVG9e07jjsGAr630sjLRyjBgMCusmd9SwwEAuofPVSO1Q PuQBMWoGL8NHvzM9gLqapJO0eERVyGHy/JI3keMqnWS49a/u0poZj0dsv1h2OMZ8g4bRTR zurMN9o98bypdaL3YTghWQxNG1PPe0B3NoCjmDiTZyHY7mO8LBFSpiWMHnRu5TbVcdkIQp I4/XBee6FNQKXGEiAiJl6obb9c1PqWAVybhf21v8vlU0kjflp2ScN8RUf+Kbig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=GDaKJ4Fs; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710405241; a=rsa-sha256; cv=none; b=B58rttvAV8UmK0+9V5S91eb6gZejUxlyR7zF3yO/md7SM5IydhXaA4mXUuK/Hy/Q+CvTxd KvgpGBcb+32E9LSzhI5uS5acd5OKq+60aS3tCFYuRfImeHJR3z5j0d4VVSDBVJGHcmGJu5 c2h8JTfchJkaoYnSIO1QOquT+byLFv7VPm5tyOHHAHO2J4zh+E4ubtj380TMtQNuEYIo18 1PscuAXN3H4gUNbNhmFXjKHNg4HwNtAMOccWMFgyzFuXjkbKZWk/fMgxP1LGp5pOxZ7UHy Yq8IJUVWSC+QE5hvhZiaBaP3wButlJQO+d6UEggM1SsDO/vpnGlIBnlPZL1lyQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 352AF615D2 for ; Thu, 14 Mar 2024 09:34:00 +0100 (CET) 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?Q?Nguy=E1=BB=85n?= 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?Q?Nguy=E1=BB=85n?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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?Q?Nguy=E1=BB=85n?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= From: guix-patches--- via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.50 X-Spam-Score: -5.50 X-Migadu-Queue-Id: 352AF615D2 X-TUID: NuzUz2d6zMcs * 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") -- 2.41.0