depot/third_party/nixpkgs/pkgs/development/python-modules/dehinter/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

37 lines
784 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";
homepage = "https://github.com/source-foundry/dehinter";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}