From patchwork Sat May 14 19:24:36 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: 39256 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 DC1DE27BBEA; Sat, 14 May 2022 20:25:15 +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 6413827BBE9 for ; Sat, 14 May 2022 20:25:15 +0100 (BST) Received: from localhost ([::1]:39576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npxO6-0003ib-J5 for patchwork@mira.cbaines.net; Sat, 14 May 2022 15:25:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npxNw-0003iB-5l for guix-patches@gnu.org; Sat, 14 May 2022 15:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npxNu-0002XT-O1 for guix-patches@gnu.org; Sat, 14 May 2022 15:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npxNu-0002nY-Kl for guix-patches@gnu.org; Sat, 14 May 2022 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55409] [PATCH] gnu: Add python-murmurhash Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 May 2022 19:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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.165255628810728 (code B ref -1); Sat, 14 May 2022 19:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 May 2022 19:24:48 +0000 Received: from localhost ([127.0.0.1]:47530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npxNg-0002mx-1n for submit@debbugs.gnu.org; Sat, 14 May 2022 15:24:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:48658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npxNe-0002mq-OM for submit@debbugs.gnu.org; Sat, 14 May 2022 15:24:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npxNe-0003hi-6b for guix-patches@gnu.org; Sat, 14 May 2022 15:24:46 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:45595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npxNc-0002WW-FA for guix-patches@gnu.org; Sat, 14 May 2022 15:24:45 -0400 Received: by mail-lf1-x12f.google.com with SMTP id f4so6887079lfu.12 for ; Sat, 14 May 2022 12:24:44 -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=jhDjg20H4dLeUHLDwC9yY3Q6ntc2efFBNTYKZqIXq9U=; b=c14icXm83v3OYUHSyf+K5n/4il9q3lS0czeiGKeCxyL4gXGplTCFiBgEZ95rwB/tC8 o3dRles11Atxq0DEx1BlYr7N6sGDCQhFDs9rGX8MTdJLuxP0py+kH0DlgHV6X3pnobCA 2FGnuOxVL8R1MHiNvuI1qoa55I7GRTW0HAq+gKNGK8ImeL0na/ZYiGbxLBRjT84q5wBA YAWQFeeV43rFtKHSHpZrUT0JD8M9ds53/TK1wI65Yb2/DWJglMyVq10tSMsNIMnJMmQH Rccy8O5gV3HycioskPPme+vEGa1Idu4Ko/sA2pcnC8H6tFehH/eS0i7Tw0lxx2U2hRVg slTA== 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=jhDjg20H4dLeUHLDwC9yY3Q6ntc2efFBNTYKZqIXq9U=; b=5mrnu+lw/hHoNJG38Q37cdus+E3+vuW3JgBNfEbywqz0KJtXz/rXDiLvr3EfnN+aN0 Gq9wuJYMyubRHAQCBgLzw591iqgLVgENNumV7XXZLFAzF13aCJyMcBUDP7iXraUAuS4i IwWxn42UWvP86kRd/Jz61odG6o7SnT7Us5aCZxqSwMw24plsASONSSeiai9AN8hoWhZ0 uEz2rjKqdqMTAx+dsOJJFMLHXfcSflxkHN9VlwoOd8w9IVJfxQfntC6FvEK2QMkCX246 eU+FPUqZpSHzFpAKWYqi0rYhYy5KB2hWJJX4BxhLW/OwBQmQhVDLpwnEMhTkwKUi+wY6 dHOA== X-Gm-Message-State: AOAM532lQcN3RsiRfU+lmEM8lCwx1N8dNwdC/9JKOyYK/SENKM1x80Bj V/g5DbqzpJik97Ds/Pwp9xVzouJ6lWc= X-Google-Smtp-Source: ABdhPJzIPgcPRHLFrTo+IXiARm3nm1Yu1FS3LVUpE1YLRSWMZPMOgXJfUldehrfBH7ZXNg5F8Lc3Yw== X-Received: by 2002:ac2:530c:0:b0:471:f9b5:ddcc with SMTP id c12-20020ac2530c000000b00471f9b5ddccmr7746656lfh.156.1652556282364; Sat, 14 May 2022 12:24:42 -0700 (PDT) Received: from elephant ([5.164.192.222]) by smtp.gmail.com with ESMTPSA id z26-20020a2eb53a000000b002509c3290efsm903911ljm.105.2022.05.14.12.24.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 12:24:41 -0700 (PDT) From: "Artyom V. Poptsov" References: <87bkw07ajo.fsf@gmail.com> Date: Sat, 14 May 2022 22:24:36 +0300 In-Reply-To: <87bkw07ajo.fsf@gmail.com> (Artyom V. Poptsov's message of "Sat, 14 May 2022 12:01:15 +0300") Message-ID: <877d6n7w97.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::12f; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x12f.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 murmurhash[1] under the name 'python-murmurhash'. This patch depends on my previous patch with 'python-murmurhash3'. - Artyom References: 1. https://github.com/explosion/murmurhash From 2f564f0ef57ddb5f99473ce49923222f6fcfed67 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 14 May 2022 22:22:06 +0300 Subject: [PATCH] gnu: Add python-murmurhash * gnu/packages/python-xyz.scm (python-murmurhash): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 94eedcb221..5460fcebcf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31193,3 +31193,44 @@ nested data structures in Python like lists and dictionaries.") of fast and robust hash functions. This library is a Python extension module written in C.") (license license:public-domain))) + +(define-public python-murmurhash + (package + (name "python-murmurhash") + (version "1.0.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "murmurhash" version)) + (sha256 + (base32 "0vwkn98c703nvsigl2nz99rax2pafkx3djjfkgc49jiipmp3j2k3")))) + (build-system python-build-system) + (native-inputs + (list python-cython + python-pytest)) + (inputs + (list python + python-murmurhash3)) + (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/explosion/murmurhash") + (synopsis "Cython bindings for MurmurHash2") + (description + "Cython bindings for MurmurHash2.") + (license license:expat))) -- 2.25.1