Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / libsixel / default.nix
blob37bf32f31fd61305da82dfab01966ac6b1d0382d
1 { buildPythonPackage
2 , lib
3 , stdenv
4 , libsixel
5 }:
7 buildPythonPackage rec {
8   version = libsixel.version;
9   format = "setuptools";
10   pname = "libsixel";
12   src = libsixel.src;
13   sourceRoot = "${src.name}/python";
15   prePatch = ''
16     substituteInPlace libsixel/__init__.py --replace \
17       'from ctypes.util import find_library' \
18       'find_library = lambda _x: "${lib.getLib libsixel}/lib/libsixel${stdenv.hostPlatform.extensions.sharedLibrary}"'
19   '';
21   # no tests
22   doCheck = false;
24   pythonImportsCheck = [ "libsixel" ];
26   meta = with lib; {
27     description = "SIXEL graphics encoder/decoder implementation";
28     homepage = "https://github.com/libsixel/libsixel";
29     license = licenses.mit;
30     maintainers = with maintainers; [ rmcgibbo ];
31   };