depot/third_party/nixpkgs/pkgs/development/python-modules/dehinter/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
808 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 ];
doCheck = true;
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Utility for removing hinting data from TrueType and OpenType fonts";
mainProgram = "dehinter";
homepage = "https://github.com/source-foundry/dehinter";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}