From a8278eab657de3cff474e1dfef5035a8885fa65b Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 16:09:24 -0400 Subject: pythonPackages.fusepy: refactor move to python-modules --- pkgs/development/python-modules/fusepy/default.nix | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/fusepy/default.nix (limited to 'pkgs/development/python-modules/fusepy') diff --git a/pkgs/development/python-modules/fusepy/default.nix b/pkgs/development/python-modules/fusepy/default.nix new file mode 100644 index 0000000000000..74ab0fc01a69d --- /dev/null +++ b/pkgs/development/python-modules/fusepy/default.nix @@ -0,0 +1,37 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pkgs +}: + +buildPythonPackage rec { + pname = "fusepy"; + version = "2.0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"; + }; + + propagatedBuildInputs = [ pkgs.fuse ]; + + # No tests included + doCheck = false; + + patchPhase = '' + substituteInPlace fuse.py --replace \ + "find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'" + ''; + + meta = with stdenv.lib; { + description = "Simple ctypes bindings for FUSE"; + longDescription = '' + Python module that provides a simple interface to FUSE and MacFUSE. + It's just one file and is implemented using ctypes. + ''; + homepage = https://github.com/terencehonles/fusepy; + license = licenses.isc; + platforms = platforms.unix; + }; + +} -- cgit 1.4.1