Merge pull request #150911 from rmcgibbo/libsixel

python3Packages.libsixel: init at 1.10.3
This commit is contained in:
Jonas Heinrich 2022-09-06 14:41:42 +02:00 committed by GitHub
commit 1d9b8dc301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ buildPythonPackage
, lib
, libsixel
}:
buildPythonPackage rec {
version = libsixel.version;
pname = "libsixel";
src = libsixel.src;
sourceRoot = "${src.name}/python";
prePatch = ''
substituteInPlace libsixel/__init__.py --replace \
'from ctypes.util import find_library' \
'find_library = lambda _x: "${lib.getLib libsixel}/lib/libsixel.so"'
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "libsixel" ];
meta = with lib; {
description = "SIXEL graphics encoder/decoder implementation";
homepage = "https://github.com/libsixel/libsixel";
license = licenses.mit;
maintainers = with maintainers; [ rmcgibbo ];
};
}

View File

@ -5177,6 +5177,11 @@ in {
libsavitar = callPackage ../development/python-modules/libsavitar { };
libsixel = callPackage ../development/python-modules/libsixel {
inherit (pkgs) libsixel;
};
libselinux = lib.pipe pkgs.libselinux [
toPythonModule
(p: