nixpkgs/pkgs/development/python-modules/dehinter/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

39 lines
814 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 ];
};
}