From patchwork Sat May 14 09:01:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39254 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 74D9527BBEA; Sat, 14 May 2022 10:07:47 +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 EA43127BBE9 for ; Sat, 14 May 2022 10:07:46 +0100 (BST) Received: from localhost ([::1]:36792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npnkY-0001iU-3z for patchwork@mira.cbaines.net; Sat, 14 May 2022 05:07:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npnf0-0007lV-5p for guix-patches@gnu.org; Sat, 14 May 2022 05:02:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npnez-0006IL-SL for guix-patches@gnu.org; Sat, 14 May 2022 05:02:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npnez-0000hE-QN for guix-patches@gnu.org; Sat, 14 May 2022 05:02:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55409] [PATCH] gnu: Add python-murmurhash3 Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 May 2022 09:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55409 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55409@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16525189022637 (code B ref -1); Sat, 14 May 2022 09:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2022 09:01:42 +0000 Received: from localhost ([127.0.0.1]:45741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npnef-0000gS-Fw for submit@debbugs.gnu.org; Sat, 14 May 2022 05:01:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:43016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npneQ-0000g5-11 for submit@debbugs.gnu.org; Sat, 14 May 2022 05:01:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npneP-0007VY-Nq for guix-patches@gnu.org; Sat, 14 May 2022 05:01:25 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:33754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npneN-0005qK-Qu for guix-patches@gnu.org; Sat, 14 May 2022 05:01:25 -0400 Received: by mail-lj1-x22b.google.com with SMTP id m23so12828638ljc.0 for ; Sat, 14 May 2022 02:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=W/Q5iT4fW+SfrXXe36wlNf6c7lwzhu6ukhb2UIHwFmQ=; b=WNC7qDPuLak1xzfJHDBzAzUFplHy5AgqBRp8GNPLOvwILIAkLS4+n0zYPfmdVroT13 13tWRVGxDyFEiX5Gy+wyra2N/SdkT52cS5Sxyp9hQlMXdCP0Jv5e9ZHI4gqMZsQ4PW2G wOcMPMd8r5IZwM3oFDQP0/cwTdxLdil/JxeeR6V+n2Js0CS8MmZeKqzWyYF/eAXNafIb tr7z8xf6VIWt3u9Ok1WtmJI6iG4V2+34otWR2JZqZ/x2pMAyZkHEXZL8tCA9qBhicLYc HUPlU2PTB+oMKKh6snGiDm8LCByzRSz9OQUTDxUEGlNyoUHbakKO8sHqM0CyhOdgDxbg 2mnA== 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:date:message-id:user-agent :mime-version; bh=W/Q5iT4fW+SfrXXe36wlNf6c7lwzhu6ukhb2UIHwFmQ=; b=g/qufsGf0WO4DYSGnSlkIgsvVCgnasM16t8GNX0LFJDc6uwqUnyUTE9oFkBmVlNFyq iO8q71mOueej6RFzbXTTSW3n3TxswfCu9elFVJXxzDBdMdvYA6ANP/cVTk6enC8tA6cZ dn3+chs/8VHB+ecnG//ZxNCfV57EhSxA36y4UE3fIiA9kCgiku75yCSbq57qgNxVajBN ND/PrHph7l/Du+VtDXg9u7GBn/nwFB5/KEs3jWHlQ9PyRsOLCbEWK5yudh3eh5jNd50C z68vBwMZKTIsezHySK25gCG6MS0B9XLPJCIhug0bok43cVC65nvtR0lmdFpTRF5SrEng h+cw== X-Gm-Message-State: AOAM533dq+f6bLQ9JQouEvCOY1ZNcofv5J9+fv8r7Q6JBxdNIoKF14T0 dAgXV9PzGs+SQy7X+C/rz9Q40d7OUAE= X-Google-Smtp-Source: ABdhPJxBK/8Mhs988Ouw7ibhiegYS1TjYkad/Je6T1I6YHNwd2zETnaKuMQ+7Dx0lPcrJ/C7hel2nw== X-Received: by 2002:a2e:980a:0:b0:24f:37c0:7ad9 with SMTP id a10-20020a2e980a000000b0024f37c07ad9mr5447491ljj.262.1652518881222; Sat, 14 May 2022 02:01:21 -0700 (PDT) Received: from elephant ([5.164.192.222]) by smtp.gmail.com with ESMTPSA id t6-20020a056512208600b0047255d211f8sm643689lfr.295.2022.05.14.02.01.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 02:01:20 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 14 May 2022 12:01:15 +0300 Message-ID: <87bkw07ajo.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::22b; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x22b.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 a python module murmurhash3[1] under the name 'python-murmurhash3'. - Artyom 1: https://pypi.org/project/murmurhash3/ From 694a99cd88fa88c0bf420f9e6dd755187c91d037 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 14 May 2022 11:59:07 +0300 Subject: [PATCH] gnu: Add python-murmurhash3 * gnu/packages/python-xyz.scm (python-murmurhash3): New variable. --- gnu/packages/python-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 020f078dee..94eedcb221 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -121,6 +121,7 @@ ;;; Copyright © 2022 Peter Polidoro ;;; Copyright © 2022 Wamm K. D. ;;; Copyright © 2022 Jai Vetrivelan +;;; Copyright © 2022 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -31150,3 +31151,45 @@ object, which can be useful if you want to force your objects into a table.") "The @code{deep-merge} Python library provides a toolset to deeply merge nested data structures in Python like lists and dictionaries.") (license license:expat))) + +(define-public python-murmurhash3 + (package + (name "python-murmurhash3") + (version "2.3.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "murmurhash3" version)) + (sha256 + (base32 "1gdzys1212dx70byz07ipknbw1awbqskh6aznlkm85js8b8qfczm")))) + (build-system python-build-system) + (native-inputs + (list python-cython + python-pytest)) + (inputs + (list python)) + (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 + ;; XXX One of the tests uses a ZIP library to pack up some of the + ;; source tree, and fails with "ZIP does not support timestamps + ;; before 1980". Work around this by setting the file times in the + ;; source tree to sometime in early 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/veegee/mmh3") + (synopsis "Python wrapper for MurmurHash (MurmurHash3)") + (description + "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set +of fast and robust hash functions. This library is a Python extension module +written in C.") + (license license:public-domain))) -- 2.25.1