pythonPackages.fusepy: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 16:09:24 -04:00 committed by Frederik Rietdijk
parent 84fc0eae5e
commit a8278eab65
2 changed files with 38 additions and 29 deletions

View File

@ -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;
};
}

View File

@ -2337,35 +2337,7 @@ in {
};
};
fusepy = buildPythonPackage rec {
name = "fusepy-2.0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/f/fusepy/${name}.tar.gz";
sha256 = "0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h";
};
propagatedBuildInputs = [ pkgs.fuse ];
# No tests included
doCheck = false;
patchPhase = ''
substituteInPlace fuse.py --replace \
"find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'"
'';
meta = {
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;
};
};
fusepy = callPackage ../development/python-modules/fusepy { };
future = callPackage ../development/python-modules/future { };
future15 = self.future.overridePythonAttrs (old: rec {