{ pkgs, lib, buildPythonPackage, fetchPypi, flit-core, pillow, pytestCheckHook, pytest-cov-stub, }: buildPythonPackage rec { pname = "pydyf"; version = "0.12.1"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-+9fnWVQaxyXCnFBmEgA945Mkm5QxDqeK5Eyx0EsiAJU="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace "--isort --flake8" "" ''; nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pkgs.ghostscript pillow pytestCheckHook pytest-cov-stub ]; pythonImportsCheck = [ "pydyf" ]; meta = { description = "Low-level PDF generator written in Python and based on PDF specification 1.7"; homepage = "https://doc.courtbouillon.org/pydyf/stable/"; changelog = "https://github.com/CourtBouillon/pydyf/releases/tag/v${version}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ rprecenth ]; }; }