567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
788 B
Nix
34 lines
788 B
Nix
{
|
|
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 ];
|
|
|
|
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 ];
|
|
};
|
|
}
|