summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-30 23:16:49 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-01 00:36:56 +0100
commit56c97d665b565d54dab794456cd1744055963678 (patch)
tree8a221116c806cffa550e1e1622fb759204b8b4df /gnu/packages/python-crypto.scm
parent812a676ddf76442e3443774ce1ca4eb80b0abc62 (diff)
gnu: python-murmurhash: Move to pyhton-crypto.
* gnu/packages/python-xyz.scm (python-murmurhash): Move from here ... * gnu/packages/python-crypto.scm: ... to here. * gnu/packages/machine-learning.scm: Add python-crypto module. Change-Id: I59a26e82622112736b5a331dd948d9aa91255207
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm48
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 938fe82480f..79e3a934896 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -26,6 +26,7 @@
26;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net> 26;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
27;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop> 27;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop>
28;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> 28;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
29;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
29;;; Copyright © 2022 Antero Mejr <antero@mailbox.org> 30;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
30;;; Copyright © 2023 Juliana Sims <juli@incana.org> 31;;; Copyright © 2023 Juliana Sims <juli@incana.org>
31;;; Copyright © 2023, 2025 Zheng Junjie <z572@z572.online> 32;;; Copyright © 2023, 2025 Zheng Junjie <z572@z572.online>
@@ -132,6 +133,53 @@ on the Blowfish password hashing algorithm, as described in
132Password Scheme\"} by Niels Provos and David Mazieres.") 133Password Scheme\"} by Niels Provos and David Mazieres.")
133 (license license:asl2.0))) 134 (license license:asl2.0)))
134 135
136(define-public python-murmurhash
137 (package
138 (name "python-murmurhash")
139 (version "1.0.10")
140 (source
141 (origin
142 (method git-fetch)
143 (uri (git-reference
144 (url "https://github.com/explosion/murmurhash")
145 (commit (string-append "v" version))))
146 (file-name (git-file-name name version))
147 (sha256
148 (base32 "02ny4391kbrssq9bf7kq75615ragvbjhsqi9hgv7wiaiz6yai1k8"))))
149 (build-system pyproject-build-system)
150 (arguments
151 (list
152 #:phases
153 #~(modify-phases %standard-phases
154 (add-after 'install 'fix-installation
155 (lambda* (#:key inputs outputs #:allow-other-keys)
156 (with-directory-excursion
157 (string-append (site-packages inputs outputs) "/murmurhash")
158 (delete-file-recursively "tests")
159 (delete-file "mrmr.pyx")
160 (for-each
161 (lambda (file)
162 (chmod file #o555))
163 (find-files "." "\\.so$")))))
164 ;; XXX: Otherwise ModuleNotFoundError, and --pyargs doesn't seem
165 ;; to fix the issue.
166 (replace 'check
167 (lambda args
168 (copy-recursively "murmurhash/tests" "tests")
169 (delete-file-recursively "murmurhash")
170 (with-directory-excursion "tests"
171 (apply (assoc-ref %standard-phases 'check) args)))))))
172 (native-inputs
173 (list python-cython
174 python-murmurhash3
175 python-pytest
176 python-setuptools))
177 (home-page "https://github.com/explosion/murmurhash")
178 (synopsis "Cython bindings for MurmurHash2")
179 (description
180 "This package provides Cython bindings for MurmurHash2.")
181 (license license:expat)))
182
135(define-public python-passlib 183(define-public python-passlib
136 (package 184 (package
137 (name "python-passlib") 185 (name "python-passlib")