From 4157cb6a4cc43ba529d71b26729cbbd55ce0c9d3 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 May 2021 18:22:34 -0300 Subject: [PATCH 2/6] gnu: Add python-xxhash. * gnu/packages/python-xyz.scm (python-xxhash): New variable. --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c6d8fb1eea..e1ec61fb0c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -131,6 +131,7 @@ #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages dbm) + #:use-module (gnu packages digest) #:use-module (gnu packages djvu) #:use-module (gnu packages docker) #:use-module (gnu packages enchant) @@ -13059,6 +13060,31 @@ fast xml and html manipulation.") @end itemize") (license license:bsd-2))) +(define-public python-xxhash + (package + (name "python-xxhash") + (version "2.0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xxhash" version)) + (sha256 + (base32 "0jbvz19acznq00544gcsjg05fkvrmwbnwdfgrvwss3i1ys6avgmp")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'use-system-xxhash + (lambda _ + (setenv "XXHASH_LINK_SO" "1")))))) + (inputs + `(("xxhash" ,xxhash))) + (home-page "https://github.com/ifduyue/python-xxhash") + (synopsis "Python binding for xxHash") + (description "This package provides a Python interface binding for the +xxHash non-cryptographic hash algorithm.") + (license license:bsd-2))) + (define-public python-anyjson (package (name "python-anyjson") -- 2.32.0