guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 2e4c2c69a060ee684bce5ffcb7d8e9ba619f9656
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 26 18:17:42 2025 +0100
gnu: python-fusepy: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-fusepy):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests?>: Disable it.
<#:phases>: Refresh it.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: I4855d99676f65aa1fc9176e9fcbbd206bafea537
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++-----------------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f30d884dce..c20dff3756 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27423,27 +27423,32 @@ commit, but it also includes some other useful
statistics.")
(version "2.0.4")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "fusepy" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/fusepy/fusepy")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
- (build-system python-build-system)
+ (base32 "10smh49lzmqam6ddxcnp1dajy4s9hi5ri3qp1rhwdyfsaq3pay81"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'set-library-file-name
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((fuse (assoc-ref inputs "fuse")))
- (substitute* "fuse.py"
- (("find_library\\('fuse'\\)")
- (string-append "'" fuse "/lib/libfuse.so'")))))))))
- (propagated-inputs
- (list fuse-2))
+ (list
+ #:tests? #f ; No formalized tests.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-library-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "fuse.py"
+ (("find_library\\('fuse'\\)")
+ (format #f "~s"
+ (search-input-file inputs "lib/libfuse.so")))))))))
+ (native-inputs (list python-setuptools))
+ (propagated-inputs (list fuse-2))
(home-page "https://github.com/fusepy/fusepy")
(synopsis "Simple ctypes bindings for FUSE")
- (description "Python module that provides a simple interface to FUSE and
-MacFUSE. The binding is created using the standard @code{ctypes} library.")
+ (description
+ "Python module that provides a simple interface to FUSE and MacFUSE. The
+binding is created using the standard @code{ctypes} library.")
(license license:isc)))
(define-public python-fusepyng