1 { stdenv, lib, buildPythonPackage, fetchFromGitHub, augeas, cffi }:
2 buildPythonPackage rec {
6 src = fetchFromGitHub {
7 owner = "hercules-team";
8 repo = "python-augeas";
10 sha256 = "12q52ilcx059rn544x3712xq6myn99niz131l0fs3xx67456pajh";
13 # TODO: not very nice!
15 let libname = "libaugeas${stdenv.hostPlatform.extensions.sharedLibrary}";
18 substituteInPlace augeas/ffi.py \
19 --replace 'ffi.dlopen("augeas")' \
20 'ffi.dlopen("${lib.makeLibraryPath [augeas]}/${libname}")'
23 propagatedBuildInputs = [ cffi augeas ];
28 description = "Pure python bindings for augeas";
29 homepage = "https://github.com/hercules-team/python-augeas";
30 license = licenses.lgpl2Plus;
31 platforms = platforms.unix;