1{ buildPythonPackage 2, lib 3, libsixel 4}: 5 6buildPythonPackage rec { 7 version = libsixel.version; 8 pname = "libsixel"; 9 10 src = libsixel.src; 11 sourceRoot = "${src.name}/python"; 12 13 prePatch = '' 14 substituteInPlace libsixel/__init__.py --replace \ 15 'from ctypes.util import find_library' \ 16 'find_library = lambda _x: "${lib.getLib libsixel}/lib/libsixel.so"' 17 ''; 18 19 # no tests 20 doCheck = false; 21 22 pythonImportsCheck = [ "libsixel" ]; 23 24 meta = with lib; { 25 description = "SIXEL graphics encoder/decoder implementation"; 26 homepage = "https://github.com/libsixel/libsixel"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ rmcgibbo ]; 29 }; 30}