From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
To: 55409@debbugs.gnu.org
Subject: [bug#55409] [PATCH] gnu: Add python-murmurhash
Date: Sat, 14 May 2022 22:24:36 +0300 [thread overview]
Message-ID: <877d6n7w97.fsf@gmail.com> (raw)
In-Reply-To: <87bkw07ajo.fsf@gmail.com> (Artyom V. Poptsov's message of "Sat, 14 May 2022 12:01:15 +0300")
[-- Attachment #1.1: Type: text/plain, Size: 224 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-murmurhash.patch --]
[-- Type: text/x-diff, Size: 2276 bytes --]
From 2f564f0ef57ddb5f99473ce49923222f6fcfed67 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
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
[-- Attachment #1.3: Type: text/plain, Size: 207 bytes --]
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2022-05-14 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-14 9:01 [bug#55409] [PATCH] gnu: Add python-murmurhash3 Artyom V. Poptsov
2022-05-14 19:24 ` Artyom V. Poptsov [this message]
2022-05-20 22:11 ` bug#55409: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877d6n7w97.fsf@gmail.com \
--to=poptsov.artyom@gmail.com \
--cc=55409@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).