{ lib, buildPythonPackage, fetchFromGitHub, fonttools, pytestCheckHook, setuptools, }: buildPythonPackage (finalAttrs: { pname = "dehinter"; version = "4.0.0"; pyproject = true; # PyPI source tarballs omit tests, fetch from Github instead src = fetchFromGitHub { owner = "source-foundry"; repo = "dehinter"; rev = "v${finalAttrs.version}"; hash = "sha256-l988SW6OWKXzJK0WGAJZR/QDFvgnSir+5TwMMvFcOxg="; }; build-system = [ setuptools ]; propagatedBuildInputs = [ fonttools ]; nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Utility for removing hinting data from TrueType and OpenType fonts"; mainProgram = "dehinter"; homepage = "https://github.com/source-foundry/dehinter"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ danc86 ]; }; })