22 buildPythonPackage rec {
23 pname = "pillow-jpls";
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
30 owner = "planetmarshall";
32 rev = "refs/tags/v${version}";
33 hash = "sha256-Rc4/S8BrYoLdn7eHDBaoUt1Qy+h0TMAN5ixCAuRmfPU=";
36 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
38 dontUseCmakeConfigure = true;
41 substituteInPlace pyproject.toml \
42 --replace-fail '"conan~=2.0.16",' "" \
43 --replace-fail '"pybind11~=2.11.1",' '"pybind11",'
70 "cmake.args=--preset=sysdeps"
73 nativeCheckInputs = [ pytestCheckHook ];
75 # Prevent importing from build during test collection:
76 preCheck = ''rm -rf pillow_jpls'';
78 pythonImportsCheck = [ "pillow_jpls" ];
81 description = "JPEG-LS plugin for the Python Pillow library";
82 homepage = "https://github.com/planetmarshall/pillow-jpls";
83 changelog = "https://github.com/planetmarshall/pillow-jpls/releases/tag/v${version}";
84 license = licenses.bsd3;
85 maintainers = with maintainers; [ bcdarwin ];