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>
This commit is contained in:
Nicolas Graves 2025-08-25 08:20:38 +02:00 committed by jgart
parent edd6befe5e
commit f0658eb3ef
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -38837,38 +38837,39 @@ nested data structures in Python like lists and dictionaries.")
(license license:expat))) (license license:expat)))
(define-public python-murmurhash3 (define-public python-murmurhash3
(package (let ((commit "01f1128a2c5ea08e6dc33515e140bedd68393a2d")
(name "python-murmurhash3") (revision "0"))
(version "2.3.5") (package
(source (origin (name "python-murmurhash3")
(method url-fetch) (version (git-version "2.3.5" revision commit))
(uri (pypi-uri "murmurhash3" version)) (source
(sha256 (origin
(base32 (method git-fetch)
"1gdzys1212dx70byz07ipknbw1awbqskh6aznlkm85js8b8qfczm")))) (uri (git-reference
(build-system python-build-system) (url "https://github.com/veegee/mmh3")
(native-inputs (list python-cython python-pytest)) (commit commit)))
(inputs (list python)) (file-name (git-file-name name version))
(arguments (sha256
(list #:modules (base32 "1zpk51ms1bvzg52zc9s9az71bgw2kgxidjcc1xib7y9r7dl7vczz"))))
'((ice-9 ftw) (ice-9 match) (build-system pyproject-build-system)
(guix build utils) (arguments
(guix build python-build-system)) (list
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980 (add-after 'unpack 'fix-package
(lambda _ (lambda _
(let ((circa-1980 (* 10 366 24 60 60))) (substitute* "mmh3module.cpp"
(ftw "." (("#include <stdio\\.h>")
(lambda (file stat flag) "#define PY_SSIZE_T_CLEAN\n#include <stdio.h>")))))))
(utime file circa-1980 circa-1980) #t)))))))) (native-inputs
(home-page "https://github.com/veegee/mmh3") (list python-cython python-pytest python-setuptools python-wheel))
(synopsis "Python wrapper for MurmurHash (MurmurHash3)") (home-page "https://github.com/veegee/mmh3")
(description (synopsis "Python wrapper for MurmurHash (MurmurHash3)")
"@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set (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 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 (define-public python-murmurhash
(package (package