about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/dehinter/default.nix
blob: 1775e01fa8c9ebb12fdd84f3ec85e70838e593fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, fonttools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "dehinter";
  version = "4.0.0";
  format = "setuptools";

  # PyPI source tarballs omit tests, fetch from Github instead
  src = fetchFromGitHub {
    owner = "source-foundry";
    repo = "dehinter";
    rev = "v${version}";
    hash = "sha256-l988SW6OWKXzJK0WGAJZR/QDFvgnSir+5TwMMvFcOxg=";
  };

  propagatedBuildInputs = [
    fonttools
  ];

  doCheck = true;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Utility for removing hinting data from TrueType and OpenType fonts";
    homepage = "https://github.com/source-foundry/dehinter";
    license = licenses.asl20;
    maintainers = with maintainers; [ danc86 ];
  };
}