mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
812a676ddf
commit
56c97d665b
3 changed files with 49 additions and 47 deletions
|
@ -121,6 +121,7 @@
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
#:use-module (gnu packages python-build)
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-check)
|
#:use-module (gnu packages python-check)
|
||||||
|
#:use-module (gnu packages python-crypto)
|
||||||
#:use-module (gnu packages python-science)
|
#:use-module (gnu packages python-science)
|
||||||
#:use-module (gnu packages python-web)
|
#:use-module (gnu packages python-web)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop>
|
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim@guixotic.coop>
|
||||||
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
||||||
|
;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
||||||
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
|
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
|
||||||
;;; Copyright © 2023 Juliana Sims <juli@incana.org>
|
;;; Copyright © 2023 Juliana Sims <juli@incana.org>
|
||||||
;;; Copyright © 2023, 2025 Zheng Junjie <z572@z572.online>
|
;;; Copyright © 2023, 2025 Zheng Junjie <z572@z572.online>
|
||||||
|
@ -132,6 +133,53 @@ on the Blowfish password hashing algorithm, as described in
|
||||||
Password Scheme\"} by Niels Provos and David Mazieres.")
|
Password Scheme\"} by Niels Provos and David Mazieres.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public python-murmurhash
|
||||||
|
(package
|
||||||
|
(name "python-murmurhash")
|
||||||
|
(version "1.0.10")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/explosion/murmurhash")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "02ny4391kbrssq9bf7kq75615ragvbjhsqi9hgv7wiaiz6yai1k8"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'fix-installation
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion
|
||||||
|
(string-append (site-packages inputs outputs) "/murmurhash")
|
||||||
|
(delete-file-recursively "tests")
|
||||||
|
(delete-file "mrmr.pyx")
|
||||||
|
(for-each
|
||||||
|
(lambda (file)
|
||||||
|
(chmod file #o555))
|
||||||
|
(find-files "." "\\.so$")))))
|
||||||
|
;; XXX: Otherwise ModuleNotFoundError, and --pyargs doesn't seem
|
||||||
|
;; to fix the issue.
|
||||||
|
(replace 'check
|
||||||
|
(lambda args
|
||||||
|
(copy-recursively "murmurhash/tests" "tests")
|
||||||
|
(delete-file-recursively "murmurhash")
|
||||||
|
(with-directory-excursion "tests"
|
||||||
|
(apply (assoc-ref %standard-phases 'check) args)))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-cython
|
||||||
|
python-murmurhash3
|
||||||
|
python-pytest
|
||||||
|
python-setuptools))
|
||||||
|
(home-page "https://github.com/explosion/murmurhash")
|
||||||
|
(synopsis "Cython bindings for MurmurHash2")
|
||||||
|
(description
|
||||||
|
"This package provides Cython bindings for MurmurHash2.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-passlib
|
(define-public python-passlib
|
||||||
(package
|
(package
|
||||||
(name "python-passlib")
|
(name "python-passlib")
|
||||||
|
|
|
@ -39112,53 +39112,6 @@ of fast and robust hash functions. This library is a Python extension module
|
||||||
written in C.")
|
written in C.")
|
||||||
(license license:public-domain))))
|
(license license:public-domain))))
|
||||||
|
|
||||||
(define-public python-murmurhash
|
|
||||||
(package
|
|
||||||
(name "python-murmurhash")
|
|
||||||
(version "1.0.10")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://github.com/explosion/murmurhash")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32 "02ny4391kbrssq9bf7kq75615ragvbjhsqi9hgv7wiaiz6yai1k8"))))
|
|
||||||
(build-system pyproject-build-system)
|
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'install 'fix-installation
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(with-directory-excursion
|
|
||||||
(string-append (site-packages inputs outputs) "/murmurhash")
|
|
||||||
(delete-file-recursively "tests")
|
|
||||||
(delete-file "mrmr.pyx")
|
|
||||||
(for-each
|
|
||||||
(lambda (file)
|
|
||||||
(chmod file #o555))
|
|
||||||
(find-files "." "\\.so$")))))
|
|
||||||
;; XXX: Otherwise ModuleNotFoundError, and --pyargs doesn't seem
|
|
||||||
;; to fix the issue.
|
|
||||||
(replace 'check
|
|
||||||
(lambda args
|
|
||||||
(copy-recursively "murmurhash/tests" "tests")
|
|
||||||
(delete-file-recursively "murmurhash")
|
|
||||||
(with-directory-excursion "tests"
|
|
||||||
(apply (assoc-ref %standard-phases 'check) args)))))))
|
|
||||||
(native-inputs
|
|
||||||
(list python-cython
|
|
||||||
python-murmurhash3
|
|
||||||
python-pytest
|
|
||||||
python-setuptools))
|
|
||||||
(home-page "https://github.com/explosion/murmurhash")
|
|
||||||
(synopsis "Cython bindings for MurmurHash2")
|
|
||||||
(description
|
|
||||||
"This package provides Cython bindings for MurmurHash2.")
|
|
||||||
(license license:expat)))
|
|
||||||
|
|
||||||
;; Scooby requires for its test suite a ‘pyvips’ package that is missing its
|
;; Scooby requires for its test suite a ‘pyvips’ package that is missing its
|
||||||
;; VIPS dependency.
|
;; VIPS dependency.
|
||||||
(define python-pyvips-for-python-scooby
|
(define python-pyvips-for-python-scooby
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue