aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2018-05-23 10:10:14 +0200
committerMathieu Othacehe <m.othacehe@gmail.com>2018-05-25 10:36:43 +0200
commita037a59f83bbc7fabca9b4d6ccaa1e1657be3009 (patch)
tree39ebcd41dd9e6f965b3acba6be727145daebb39b /gnu
parentb5a9f49b495a810d4ffb9bbd24054acbeaab894e (diff)
downloadguix-a037a59f83bbc7fabca9b4d6ccaa1e1657be3009.tar
guix-a037a59f83bbc7fabca9b4d6ccaa1e1657be3009.tar.gz
gnu: Add python-fusepy.
* gnu/packages/python.scm (python-fusepy): New variable, (python2-fusepy): new variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 50bfc8d8da..27deaebdb8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13366,3 +13366,36 @@ gevent-powered application.")
(define-public python2-gipc
(package-with-python2 python-gipc))
+
+(define-public python-fusepy
+ (package
+ (name "python-fusepy")
+ (version "2.0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "fusepy" version))
+ (sha256
+ (base32
+ "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
+ (build-system python-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'")))
+ #t))))))
+ (propagated-inputs
+ `(("fuse" ,fuse)))
+ (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.")
+ (license license:isc)))
+
+(define-public python2-fusepy
+ (package-with-python2 python-fusepy))