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 ms13.migadu.com with LMTPS id 6BLcD9IkgWYtfwEAqHPOHw:P1 (envelope-from ) for ; Sun, 30 Jun 2024 09:26:42 +0000 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 6BLcD9IkgWYtfwEAqHPOHw (envelope-from ) for ; Sun, 30 Jun 2024 11:26:42 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="aSGbXA/W"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719739602; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=Z++w1qOykC5ozq+R6wv42CfmxTJVhyuiexRnpBJKkoM=; b=YPeue56isHLVbo6mOenRd8PUPXrwM0DhVBoCJdk64ZJwW1DJTjUA5OQ+Z77TQTIIt/kXGW 9k5/04gDjwDONgiAwx1Ol56+TcN73vI4QJtFsNRq73B+8FrwjgIhp5fHU6+wVE9QDyK3Vy TMCuy8Cu9erhqxg5JmE4EnzvEgc/5W7HRtMKuL/JVVZDd23JEr2Ckb/qJlHtldOJ5hTVFd 8xdzsLrFEl+ZbTiLQJ1Be9lQcq6Pj9TOTh4LyA6Insi+R+GVlr3hL09UoFNytIEYdYVagY RuepIBo/cb39/eC9MUllQhMIyPhw4ZvxsanFk/Zxl4+rb1/FqAjXXj0zar/ijA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719739602; a=rsa-sha256; cv=none; b=uCD5eqSG+7GfH1FMVkAEc6QTd7uvmvdDAQVOmiDJ8W8zs7QuN43mjWSnyJPcdb8JK+0/s/ M33fozFwm3QCkhy8Ibafwje2MWDXLftPfUMrRMIrzBP/UnIOeDBQaI0pb+R0Jp2uT/ckF+ nhD43OWEz0kTY1pzk0KzuuoyEngzf/ZNQQWh1fG3Ko3lr42M0N4tEK8bjPqwK1P2uSifjM HQiX/cocUBXysROSxKa3YLZuIadxuoOsDxYjH4UBZyMfHEdRxfvmEOUnCaCdpSdhPZ7DKJ 46AAJwLuBHgey8X/KEuxfai5tssjDAtD74Ys2iIO0SVjGOW17CzC72u2h+KWrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="aSGbXA/W"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" 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 D358032B87 for ; Sun, 30 Jun 2024 11:26:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNqYk-0006tH-Ue; Sun, 30 Jun 2024 05:09:22 -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 1sNqYW-0006gB-4w for guix-patches@gnu.org; Sun, 30 Jun 2024 05:09:09 -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 1sNqYR-0001oJ-JH for guix-patches@gnu.org; Sun, 30 Jun 2024 05:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNqYR-0001xM-BW for guix-patches@gnu.org; Sun, 30 Jun 2024 05:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71843] [PATCH 18/26] gnu: Add go-github-com-jdkato-twine. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Jun 2024 09:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71843 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71843@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 71843-submit@debbugs.gnu.org id=B71843.17197384957392 (code B ref 71843); Sun, 30 Jun 2024 09:09:03 +0000 Received: (at 71843) by debbugs.gnu.org; 30 Jun 2024 09:08:15 +0000 Received: from localhost ([127.0.0.1]:55076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqXe-0001v4-Rm for submit@debbugs.gnu.org; Sun, 30 Jun 2024 05:08:15 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:52273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNqX3-0001pK-8D for 71843@debbugs.gnu.org; Sun, 30 Jun 2024 05:07:37 -0400 Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-424acfff613so18837075e9.0 for <71843@debbugs.gnu.org>; Sun, 30 Jun 2024 02:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719738392; x=1720343192; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z++w1qOykC5ozq+R6wv42CfmxTJVhyuiexRnpBJKkoM=; b=aSGbXA/WZ6jmx0Jn58wdyxteghq3IQzR6X0Y8toz5znCiWZaAG3Brv+GaQfY5OmHUE jm/MlJt6n0Z9g7uHdiF3/952Yh0PBeAlomKhFpuZjdUS7fGrLt/g86WOPeTjL4dRSo3s JP34MAfK/ckmej0KX+vz9aCpO82kvbY4GvKDWGj++4w5bKuj0hmZ4gylAcmkiATXTU2L 17lNXFV18SQBzT2ofZsFzQITDzKzVpr6ERJF29iZvCGhilmq7tFhPFlZ5S+Tr94wqCpp ohQahey5UXuNBwu9n1vBEFwMsFKKA93zmpS+g+sWbDgI7LKUuC6IZWwgJQOqr7TXpd4C E3pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719738392; x=1720343192; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z++w1qOykC5ozq+R6wv42CfmxTJVhyuiexRnpBJKkoM=; b=wX/CEjHz5PKrmvU0JuHeyvFC+Qy5TVrAsyX6JjMKO7iegfi9QYjjBzItr6Lz7VSLqq 40ZcEHOQfAtc5oZnJbejQURBlVFLpSU/uhcahEBUCAV7oKiCBkojPP/O/qRG3hoOlQbU lQUMrjbw+ZpXTqBU6hmC6A+DBv7SBigh+tq04W+bj89eglTYxyBjkrfISG5e6KW7QstH VeRLYX8phLWm2Sj082RCbi3d58qYkzvMODsjnlavoAN6h6PTm/MTK7opdr7pfw0z6Kmz u1+tT9oqqiteRH/5TmjvbOFMVdgIoFvZ8aplO9DeUGQ38QuEYium19ZJUDMckQYDUOe/ 3WZA== X-Gm-Message-State: AOJu0Yxwx0FuLLX0AWLm9rQ6UgAIiyGLaT3YHI0PPeaa8yN1rbp/R+TE swswHqjeRLUdtgerFcQYei8CS3TckZkJ2MQ9F4Q5TiplmmjiUTKz2h8h5K9c X-Google-Smtp-Source: AGHT+IFaPobqGvCZhV9Fk7OIaKxByU447gg1BKFbby+/4mZ4RqcEu0Hoyg+yLcMQI392GC2yANV8ew== X-Received: by 2002:a05:600c:5cb:b0:424:a58f:cc9a with SMTP id 5b1f17b1804b1-4257a00733dmr22924805e9.12.1719738391793; Sun, 30 Jun 2024 02:06:31 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256af5b66csm103446845e9.18.2024.06.30.02.06.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jun 2024 02:06:31 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 30 Jun 2024 10:05:58 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: D358032B87 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.78 X-Spam-Score: -3.78 X-TUID: yj7SkzMfzP5X * gnu/packages/golang-xyz.scm (go-github-com-jdkato-twine): New variable. Change-Id: I13e55c204ab2072672a9556d7c0cac02f395116c --- gnu/packages/golang-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 6f6167972f..2d669ec829 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2258,6 +2258,56 @@ (define-public go-github-com-jbenet-goprocess and stop units of work, which may receive @code{Close} signals from many clients.") (license license:expat))) +(define-public go-github-com-jdkato-twine + (package + (name "go-github-com-jdkato-twine") + (version "0.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jdkato/twine") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1hbpxcrcsbi975lklrhzyzk0fzn79pxicvfyf2sckmd2n6jb4ayy")))) + (build-system go-build-system) + (arguments + (list + ;; FIXME: Adjust tests sute or check with upstram: + ;; === Failed + ;; === FAIL: nlp/segment TestGoldenRules (0.00s) + ;; segment_test.go:143: 25. Double quotations inside sentence + ;; segment_test.go:144: Actual: [She turned to him, "This is great." she said.] + ;; segment_test.go:145: Actual: 2, Expected: 1 + ;; segment_test.go:146: === + #:tests? #f + #:go go-1.21 + #:import-path "github.com/jdkato/twine" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-module-import-path + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "\\.go$") + (("gopkg.in/neurosnap/sentences.v1") + "github.com/neurosnap/sentences"))))) + (replace 'build + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "go" "build" "-v" "-x" "-ldflags=-s -w" "-trimpath" "./..."))))))) + (native-inputs + (list gotestsum)) + (propagated-inputs + (list go-github-com-montanaflynn-stats + go-github-com-neurosnap-sentences + go-github-com-errata-ai-regexp2)) + (home-page "https://github.com/jdkato/twine") + (synopsis "NLP-related string utilities") + (description + "NLP-related string utility functions for Golang.") + (license license:expat))) + (define-public go-github-com-jinzhu-copier (package (name "go-github-com-jinzhu-copier") -- 2.41.0