diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-26 18:17:42 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-29 15:28:36 +0000 |
| commit | 2e4c2c69a060ee684bce5ffcb7d8e9ba619f9656 (patch) | |
| tree | 94883826378c0c6c3f4f5bb29ab6eaf6ffc099dd /gnu/packages/python-xyz.scm | |
| parent | 87a41ed724936fc4290f783e3475c505d1ea7511 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f30d884dce6..c20dff37562 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 |
