[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: Add python-preshed
From: |
guix-commits |
Subject: |
10/12: gnu: Add python-preshed |
Date: |
Tue, 24 May 2022 11:21:52 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 02a0c1fad9086dae50572a1e9c1fc97296d55c07
Author: Artyom V. Poptsov <poptsov.artyom@gmail.com>
AuthorDate: Sat May 21 11:37:47 2022 +0300
gnu: Add python-preshed
* gnu/packages/python-xyz.scm (python-preshed): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
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 7e1f16649c..a661b1403f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31683,3 +31683,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)))
+(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)))
- branch master updated (adf5ae5a41 -> 01793ed03e), guix-commits, 2022/05/24
- 02/12: gnu: gcc@11: Update 'compiler-cpu-architectures' property., guix-commits, 2022/05/24
- 04/12: gnu: gcc-toolchain: Add 12.1.0., guix-commits, 2022/05/24
- 11/12: gnu: dumb: Fix build., guix-commits, 2022/05/24
- 01/12: profiles: 'manifest->gexp' emits 'properties' field only when needed., guix-commits, 2022/05/24
- 10/12: gnu: Add python-preshed,
guix-commits <=
- 03/12: gnu: gcc: Add 12.1.0., guix-commits, 2022/05/24
- 05/12: gnu: sssd: Update to 2.7.0., guix-commits, 2022/05/24
- 06/12: services: Add log rotation to most networking services., guix-commits, 2022/05/24
- 07/12: gnu: python-tldr: Update to 3.1.0., guix-commits, 2022/05/24
- 08/12: gnu: python-tldr: Use g-exp., guix-commits, 2022/05/24
- 09/12: gnu: Add python-cymem, guix-commits, 2022/05/24
- 12/12: gnu: cpuid: Update to 20220224., guix-commits, 2022/05/24