From patchwork Sat May 21 14:16:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39553 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 002F327BBEA; Sat, 21 May 2022 15:17:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_SORBS_WEB,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no 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 70C8527BBE9 for ; Sat, 21 May 2022 15:17:14 +0100 (BST) Received: from localhost ([::1]:59316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsPur-0003ks-LB for patchwork@mira.cbaines.net; Sat, 21 May 2022 10:17:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsPug-0003ki-IY for guix-patches@gnu.org; Sat, 21 May 2022 10:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsPuf-0005Fs-Q3 for guix-patches@gnu.org; Sat, 21 May 2022 10:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsPuf-0001OD-LI for guix-patches@gnu.org; Sat, 21 May 2022 10:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55390] [PATCH] gnu: Add python-preshed Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 May 2022 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55390 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55390@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16531425865291 (code B ref -1); Sat, 21 May 2022 14:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2022 14:16:26 +0000 Received: from localhost ([127.0.0.1]:42774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsPu1-0001N9-Nz for submit@debbugs.gnu.org; Sat, 21 May 2022 10:16:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:59408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsPtu-0001Mu-JR for submit@debbugs.gnu.org; Sat, 21 May 2022 10:16:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsPtu-0003hh-8h for guix-patches@gnu.org; Sat, 21 May 2022 10:16:14 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:46829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsPts-00058W-5C for guix-patches@gnu.org; Sat, 21 May 2022 10:16:13 -0400 Received: by mail-lj1-x236.google.com with SMTP id e4so11846180ljb.13 for ; Sat, 21 May 2022 07:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=nZ5eRLkABGsWROQDTAOOpjSozwz6ukDQK7yDiXouTcE=; b=KeCgKUcDXu63WKc0pAAg8AXhfKm4ewMf4SvxKl2j5neekJtbqco3b45EP8JS0GZxoy B+T0uEsGULlrU/Y9A+45OZML+q527eKmiEN8g8O35ApMozxuO+fMEjWSJDArbLzxC6tq 9pzqHa2095MT7H3rj+1oFOW9N7shgltDInD8jY6GL3Ey2yP0o/+Edtz6tGFbftT3U3L9 UAfR+HG0QIVOjrrwH8tqavjWf6Dcc6HBbfYpV4jrqjnFT1A9FW7YFUCA68yJoaZ4/PnV Sgbyd1RQfUdwARZWAsePXop7BFBwGNI6y0M9kQqLqGpvQpk+jf7GPXKT8nVt0P5UQejw DHqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=nZ5eRLkABGsWROQDTAOOpjSozwz6ukDQK7yDiXouTcE=; b=YfoQltudECHMGQ2A8dmywY24neVIFkXADYaP7/DjfH6Pbj5207JQQaxC9Ib/X/CrAm S8/kgDIwU0Y08JLHLMdJvyHgoe6GFx3/O1+UTI6XuJ+pYOUvwAEha3LqvQQeRdxggx5L 7ft2ePgvuv65cSdqaxrDKAh8qSRuXYjXGb7GnERLEqR7hMPf/9gMhVY7L7vOiM0L8+GI 4RuthKU0uW/gp40GxQaYNT7mt7NWXBjhNvO9c5Vi4qQdBfqdgbDMEmzhY8SgILokTcnT tXkNhbE9eO++bgnQuszrWKhNYPTzKABNq32eooP0W4t79MMgXM05dA41hQ0wSQoL3FiN 1i2g== X-Gm-Message-State: AOAM531gXqgYTfsnZHSH84kPz1g4No/QMApv8ekAnKnQvFEHpFIrz0Tw xwst3/Lvp01ZsvHzdExdL0tYqIWXN8Q= X-Google-Smtp-Source: ABdhPJwGlGquYnse2RSyK4ttPZzn+OKCzh7VPOCvWzTshvZUDDwv/0awj+3Mdel2STVfQauEnabniQ== X-Received: by 2002:a05:651c:542:b0:24f:fcb7:5cad with SMTP id q2-20020a05651c054200b0024ffcb75cadmr8092447ljp.201.1653142568917; Sat, 21 May 2022 07:16:08 -0700 (PDT) Received: from elephant ([5.164.192.222]) by smtp.gmail.com with ESMTPSA id w1-20020a05651234c100b00477cab33759sm963055lfr.256.2022.05.21.07.16.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 07:16:08 -0700 (PDT) From: "Artyom V. Poptsov" References: <87fsle7cui.fsf@gmail.com> Date: Sat, 21 May 2022 17:16:03 +0300 In-Reply-To: <87fsle7cui.fsf@gmail.com> (Artyom V. Poptsov's message of "Thu, 12 May 2022 22:47:01 +0300") Message-ID: <8735h3gee4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds preshed[1] under the name 'python-preshed'. The package depends on: - 'python-murmurhash' (this package was recently merged to Guix.) - 'python-cymem' (this package is awaiting the merge.) 'python-preshed' is the one of the dependencies of spaCy -- an NLP library for Python.[2] - Artyom References: 1. "Cython hash tables that assume keys are pre-hashed" https://github.com/explosion/preshed 2. https://spacy.io/ From af05b2f142efce971baa7d2843d96f493273967b Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 21 May 2022 11:37:47 +0300 Subject: [PATCH] gnu: Add python-preshed * gnu/packages/python-xyz.scm (python-preshed): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 832d5bd578..2eb876ed69 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31492,3 +31492,35 @@ easy to tie memory to a Python object's life-cycle, so that the memory is freed when the object is garbage collected.") (license license:expat))) +(define-public python-preshed + (package + (name "python-preshed") + (version "3.0.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "preshed" version)) + (sha256 + (base32 + "0akpydd23xqxx9d04drsnw9140rb3cv07r1zpzqz5wm0lf47afzv")))) + (build-system python-build-system) + (native-inputs (list python-cython python-cymem python-pytest)) + (inputs (list python python-cymem python-murmurhash)) + (arguments + (list #:modules + '((ice-9 ftw) (ice-9 match) + (guix build utils) + (guix build python-build-system)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-source-file-times-to-1980 + (lambda _ + (let ((circa-1980 (* 10 366 24 60 60))) + (ftw "." + (lambda (file stat flag) + (utime file circa-1980 circa-1980) #t)))))))) + (home-page "https://github.com/explosion/preshed") + (synopsis "Cython hash tables that assume keys are pre-hashed") + (description + "Simple but high performance Cython hash table mapping pre-randomized keys +to void* values.") + (license license:expat))) -- 2.25.1