mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
33 lines
759 B
Nix
33 lines
759 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, stdenv
|
|
, libsixel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = libsixel.version;
|
|
format = "setuptools";
|
|
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${stdenv.hostPlatform.extensions.sharedLibrary}"'
|
|
'';
|
|
|
|
# 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 ];
|
|
};
|
|
}
|