21 buildPythonPackage rec {
22 pname = "pillow-jpls";
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
29 owner = "planetmarshall";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-Rc4/S8BrYoLdn7eHDBaoUt1Qy+h0TMAN5ixCAuRmfPU=";
36 substituteInPlace pyproject.toml --replace '"conan~=2.0.16",' ""
52 propagatedBuildInputs = [
59 pypaBuildFlags = [ "-C" "cmake.args='--preset=sysdeps'" ];
60 dontUseCmakeConfigure = true;
62 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
67 # prevent importing from build during test collection:
68 preCheck = ''rm -rf pillow_jpls'';
70 pythonImportsCheck = [
75 description = "A JPEG-LS plugin for the Python Pillow library";
76 homepage = "https://github.com/planetmarshall/pillow-jpls";
77 license = licenses.bsd3;
78 maintainers = with maintainers; [ bcdarwin ];