Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fonttools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "dehinter"; 11 version = "4.0.0"; 12 format = "setuptools"; 13 14 # PyPI source tarballs omit tests, fetch from Github instead 15 src = fetchFromGitHub { 16 owner = "source-foundry"; 17 repo = "dehinter"; 18 rev = "v${version}"; 19 hash = "sha256-l988SW6OWKXzJK0WGAJZR/QDFvgnSir+5TwMMvFcOxg="; 20 }; 21 22 propagatedBuildInputs = [ fonttools ]; 23 24 doCheck = true; 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 meta = with lib; { 28 description = "Utility for removing hinting data from TrueType and OpenType fonts"; 29 mainProgram = "dehinter"; 30 homepage = "https://github.com/source-foundry/dehinter"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ danc86 ]; 33 }; 34}