mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 22:33:52 +00:00
37 lines
852 B
Nix
37 lines
852 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|