summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-25 08:20:38 +0200
committerjgart <jgart@dismail.de>2025-08-26 09:30:01 -0500
commitf0658eb3ef455f3119bbc21bd0ebde998711bfb7 (patch)
tree364f155ac0e15941366df48049547c7d6999151a /gnu/packages/python-xyz.scm
parentedd6befe5e720fce9466a04ddd6c34bbf9a7c688 (diff)
gnu: python-murmurhash3: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-murmurhash3): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:modules>: Remove them, they are probably not needed anymore because of the switch to git-fetch. <#:phases>: Remove phase 'set-source-file-time-to-1980 for the same reason. Add phase 'fix-package. [native-inputs]: Add python-setuptools, python-wheel. [inputs]: Remove python. Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm61
1 files changed, 31 insertions, 30 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a0b1e97bd6..126b8509d6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -38837,38 +38837,39 @@ nested data structures in Python like lists and dictionaries.")
(license license:expat)))
(define-public python-murmurhash3
- (package
- (name "python-murmurhash3")
- (version "2.3.5")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "murmurhash3" version))
- (sha256
- (base32
- "1gdzys1212dx70byz07ipknbw1awbqskh6aznlkm85js8b8qfczm"))))
- (build-system python-build-system)
- (native-inputs (list python-cython python-pytest))
- (inputs (list python))
- (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/veegee/mmh3")
- (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
- (description
- "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
+ (let ((commit "01f1128a2c5ea08e6dc33515e140bedd68393a2d")
+ (revision "0"))
+ (package
+ (name "python-murmurhash3")
+ (version (git-version "2.3.5" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/veegee/mmh3")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zpk51ms1bvzg52zc9s9az71bgw2kgxidjcc1xib7y9r7dl7vczz"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-package
+ (lambda _
+ (substitute* "mmh3module.cpp"
+ (("#include <stdio\\.h>")
+ "#define PY_SSIZE_T_CLEAN\n#include <stdio.h>")))))))
+ (native-inputs
+ (list python-cython python-pytest python-setuptools python-wheel))
+ (home-page "https://github.com/veegee/mmh3")
+ (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
+ (description
+ "@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
of fast and robust hash functions. This library is a Python extension module
written in C.")
- (license license:public-domain)))
+ (license license:public-domain))))
(define-public python-murmurhash
(package