guix_mirror_bot pushed a commit to branch master
in repository guix.
commit efe511f8cac4d57233bf5cead2583b25a98762f7
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Oct 4 01:00:14 2025 +0200
gnu: python-hnswlib: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-hnswlib):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-pytest, python-setuptools.
Change-Id: Iff696b3284e12a3a4664892bcf8e871427f10fc1
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 35a2e42647..888cc52c6d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4977,22 +4977,25 @@ interface utility to parse
@url{https://hjson.github.io/, HJSON}) documents.")
(version "0.5.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "hnswlib" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nmslib/hnswlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0wf1cwmxmdzfqmfhrkqdxb5spf21ylgl2bidswhzjrqhwf35c9qf"))))
- (build-system python-build-system)
+ (base32 "1ixhpsqlikjf7id1zlgqakq2ihpvq5h3npxj7mqjbx09ncsjam1m"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-native-optimization
- (lambda _
- (substitute* "setup.py"
- ((", '-march=native'") "")))))))
- (propagated-inputs
- (list python-numpy))
- (native-inputs
- (list pybind11))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-native-optimization
+ (lambda _
+ (substitute* "setup.py"
+ ((", '-march=native'")
+ "")))))))
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list pybind11 python-pytest python-setuptools))
(home-page "https://github.com/nmslib/hnswlib")
(synopsis "Fast approximate nearest neighbor search")
(description "Hnswlib is a header-only C++ implementation of fast