mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 06:04:14 +00:00
Merge pull request #150911 from rmcgibbo/libsixel
python3Packages.libsixel: init at 1.10.3
This commit is contained in:
commit
1d9b8dc301
30
pkgs/development/python-modules/libsixel/default.nix
Normal file
30
pkgs/development/python-modules/libsixel/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user