1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fonttools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "dehinter";
11 version = "4.0.0";
12 format = "setuptools";
13
14 # PyPI source tarballs omit tests, fetch from Github instead
15 src = fetchFromGitHub {
16 owner = "source-foundry";
17 repo = "dehinter";
18 rev = "v${version}";
19 hash = "sha256-l988SW6OWKXzJK0WGAJZR/QDFvgnSir+5TwMMvFcOxg=";
20 };
21
22 propagatedBuildInputs = [ fonttools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 meta = with lib; {
27 description = "Utility for removing hinting data from TrueType and OpenType fonts";
28 mainProgram = "dehinter";
29 homepage = "https://github.com/source-foundry/dehinter";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ danc86 ];
32 };
33}