From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oGpGGGb0iGLJQwEAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 16:17:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4H1OF2b0iGJnbwEAG6o9tA (envelope-from ) for ; Sat, 21 May 2022 16:17:10 +0200 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 E625937F9A for ; Sat, 21 May 2022 16:17:09 +0200 (CEST) Received: from localhost ([::1]:59316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsPum-0003ks-Jt for larch@yhetil.org; Sat, 21 May 2022 10:17:08 -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 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653142630; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=nZ5eRLkABGsWROQDTAOOpjSozwz6ukDQK7yDiXouTcE=; b=KmJg4GfGYaHmurqog8jUG/4sYrLT9Gyuuc5VrkZ3eFiOCjK2g0GLX4+Pd/HaujaveCw7hZ glD1FHl9kj6A6hapLBvdkJ3mPgNTGM8Z5SZXqiy9/fG/t3WZDnT4EonXj2yEmzgb/99snj MLI6Wah1jc+W+vGsfDIPumO6RrUVb1G6A2xHTc1QXwXtQ2P7I5iU4UTyWj+JAhCvwy323L OOMUik609pnpeJJROB0rFJdr0NCUhCykVuUZ3WnvEFfFfWgmirKEIeZqbtuKvqpbBGTHhw NQ5fW/I+NQcJa4m3uaWlLMel62g1excyjypFtDKwMmo7X08hy6jmfxiDeV+pQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653142630; a=rsa-sha256; cv=none; b=qYG6nHAFtXmqaABG64+CoAk90zm60V0XyI/f9qiutvTLULOd/kkkCxu8RfPttIROebelkx y5nNwKf8Fa8/+TQ8Jj6LLsMwgzMKitCoWgfQ2Z3POFFN0G97vUdudQ5Y6NOfLIBAwkQ8q2 LLFelMCwahUZG6xz+MMBdQKNMXmwjRyTCgitgJpVq0Rh9yv3a1Y9J5BPNcYFwilgkNCgyY MOCVwjGTmLQDUcPhgBXcJp9hCLCPPyXzAkfvRE+GJsldvAdb4uJSp20aLUGmk7+lwAclbe a1qFF+L8iFgIH9JcIlzRn+DRP3DkL01iGKnstR/lXD2vqoO1LxGgggeBt3YRuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KeCgKUcD; 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" X-Migadu-Spam-Score: 3.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KeCgKUcD; 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" X-Migadu-Queue-Id: E625937F9A X-Spam-Score: 3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: z6T4BzbtVVz0 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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/ --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-python-preshed.patch Content-Transfer-Encoding: quoted-printable From=20af05b2f142efce971baa7d2843d96f493273967b 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. =2D-- 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 =2D-- 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))) =20 +(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))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmKI9CMACgkQ6cWi2QiY oC8EpwgApbbTMpvRQHIqHVzZeCUfV7U8PIc1XDsREhKt7vit0wzVu3Ilav5A4kFO YL5HBsECweDsLxsDfxMCUQeipHAwqMsWTeF0s1Y3OttA/v6cshnhBrbYCSK9BQQ8 8Xl3T7Igh4cdEQ89+Yun3S1p8oo5ij6GHn4exPwz7DLS5qZfK2Oo0oWK1+eJiSxe MiFb74xs5OjtBVqVXykgPhmK99gSGmspwrjtjGvevum6Mp2yzOH0a9e1iCEIPf8W XI8v35bFxAQTeFdF6p15ADvhHwYGpaZ0IvsPm7uULk5I6xnvCfiWx6S82TA1UpYJ xr8zm6dDc+l0SQqWxsY9DM32a1U7Jg== =040f -----END PGP SIGNATURE----- --==-=-=--