From patchwork Sat Nov 18 21:52:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 19665 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 C99E527BBE9; Sat, 18 Nov 2023 21:53:22 +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 1764327BBE2 for ; Sat, 18 Nov 2023 21:53:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4TFO-00052P-GW; Sat, 18 Nov 2023 16:53:02 -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 1r4TFN-0004zn-8h for guix-patches@gnu.org; Sat, 18 Nov 2023 16:53:01 -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 1r4TFM-0007gg-UB for guix-patches@gnu.org; Sat, 18 Nov 2023 16:53:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4TFN-0005fU-Td for guix-patches@gnu.org; Sat, 18 Nov 2023 16:53:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67265] [PATCH 1/3] gnu: Add python-hopcroftkarp. References: <87il5yag2m.fsf@troyfigiel.com> In-Reply-To: <87il5yag2m.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Nov 2023 21:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67265 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67265@debbugs.gnu.org Received: via spool by 67265-submit@debbugs.gnu.org id=B67265.170034435221749 (code B ref 67265); Sat, 18 Nov 2023 21:53:01 +0000 Received: (at 67265) by debbugs.gnu.org; 18 Nov 2023 21:52:32 +0000 Received: from localhost ([127.0.0.1]:49581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4TEt-0005ei-TM for submit@debbugs.gnu.org; Sat, 18 Nov 2023 16:52:32 -0500 Received: from mout-y-209.mailbox.org ([2001:67c:2050:103:465::209]:36556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4TEq-0005eU-99 for 67265@debbugs.gnu.org; Sat, 18 Nov 2023 16:52:30 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4SXnYb58sxz9svY for <67265@debbugs.gnu.org>; Sat, 18 Nov 2023 22:52:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1700344339; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yplJTKravv4KxOgzg2dpsCMb62pBXRzWuGDLAurUpnE=; b=XTiKVarNDnWWaF3JSu9Dbdah2jL2mheLqp7OKLE2ybmPS+xi1w5e0ANcCZGUNGj4DGFzTv chtlgtuHbdojyRmdKiFFFqg0B6hEVemUT1OwMqEqWX9TnzjDH/w0cCruVIfhpr/nz9P2KN zJTxHlX56QcmfmNrhWYMIj+qwIv8lll3YZoXdY0/ouqRoGIj7zCz0iEzzHW/5kCHl4w2jB I7zkx8nO17TZv6CoCgGbN7KYxRzV1s1GwT624uNgQScF3Xpn8PqlZHH9zB1EmdmUNgdAIT kY0je2xh1oXDGcKL7+IuZASeYZWTi7HxnU4iRF2vHxfPDIo77g+60qiODakiEw== From: Troy Figiel Date: Sat, 18 Nov 2023 22:52:19 +0100 Message-ID: <87h6liafvw.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4SXnYb58sxz9svY 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 * gnu/packages/machine-learning.scm (python-hopcroftkarp): New variable. Change-Id: I444f0371526d7a69d31363c228d5f7818bcf60dd --- gnu/packages/machine-learning.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a84377e1eb..6c29aefb58 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2023 zamfofex ;;; Copyright © 2023 Navid Afkhami ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -812,6 +813,30 @@ (define-public sentencepiece depend on language-specific pre- or post-processing.") (license license:asl2.0))) +(define-public python-hopcroftkarp + ;; This commit fixes a broken import, but has not been released to PyPI. + (let ((commit "2846e1dd3265d95d2bddb0cf4190b830cbb4efe6") + (revision "1")) + (package + (name "python-hopcroftkarp") + (version (git-version "1.2.5" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sofiatolaosebikan/hopcroftkarp") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "018ilrp41fcclmb5lsml3aijwbmhbq3m7wy65hr1fryj0avic8fr")))) + (build-system pyproject-build-system) + (home-page "https://github.com/sofiatolaosebikan/hopcroftkarp") + (synopsis "Implementation of the Hopcroft-Karp algorithm") + (description + "This package implements the Hopcroft-Karp algorithm, producing a maximum +cardinality matching from a bipartite graph.") + (license license:gpl3)))) + (define-public python-sacrebleu (package (name "python-sacrebleu")