1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, fonttools 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "compreffor"; 11 version = "0.5.3"; 12 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-fUEpbU+wqh72lt/ZJdKvMifUAwYivpmzx9QQfcb4cTo="; 18 }; 19 20 nativeBuildInputs = [ 21 setuptools-scm 22 ]; 23 24 propagatedBuildInputs = [ 25 fonttools 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 # Tests cannot seem to open the cpython module. 33 doCheck = false; 34 35 pythonImportsCheck = [ 36 "compreffor" 37 ]; 38 39 meta = with lib; { 40 description = "CFF table subroutinizer for FontTools"; 41 homepage = "https://github.com/googlefonts/compreffor"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ jtojnar ]; 44 }; 45}