From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLPFf-0003oc-IX for guix-patches@gnu.org; Wed, 23 May 2018 04:36:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLPFc-00062f-1Z for guix-patches@gnu.org; Wed, 23 May 2018 04:36:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLPFb-00062I-Tp for guix-patches@gnu.org; Wed, 23 May 2018 04:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fLPFb-0005yn-OI for guix-patches@gnu.org; Wed, 23 May 2018 04:36:03 -0400 Subject: [bug#31564] [PATCH 4/5] gnu: Add python-fusepy. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLPFB-0003bM-Fe for guix-patches@gnu.org; Wed, 23 May 2018 04:35:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLPF8-0005nk-G4 for guix-patches@gnu.org; Wed, 23 May 2018 04:35:37 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:45526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLPF8-0005nd-AI for guix-patches@gnu.org; Wed, 23 May 2018 04:35:34 -0400 Received: by mail-wr0-x242.google.com with SMTP id w3-v6so17154395wrl.12 for ; Wed, 23 May 2018 01:35:34 -0700 (PDT) From: Mathieu Othacehe Date: Wed, 23 May 2018 10:35:21 +0200 Message-Id: <1527064522-20775-4-git-send-email-m.othacehe@gmail.com> In-Reply-To: <1527064522-20775-1-git-send-email-m.othacehe@gmail.com> References: <1527064522-20775-1-git-send-email-m.othacehe@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31564@debbugs.gnu.org * gnu/packages/python.scm (python-fusepy): New variable, (python2-fusepy): new variable. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7919f45..665a739 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13365,3 +13365,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)) -- 2.7.4