M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +22 -17
@@ 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