1{ lib 2, buildPythonPackage 3, cython 4, fetchpatch 5, fetchPypi 6, setuptools-scm 7, fonttools 8, pytestCheckHook 9, wheel 10}: 11 12buildPythonPackage rec { 13 pname = "compreffor"; 14 version = "0.5.5"; 15 format = "pyproject"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-9NMmIJC8Q4hRC/H2S7OrgoWSQ9SRIPHxHvZpPrPCvHo="; 20 }; 21 22 patches = [ 23 # https://github.com/googlefonts/compreffor/pull/153 24 (fetchpatch { 25 name = "remove-setuptools-git-ls-files.patch"; 26 url = "https://github.com/googlefonts/compreffor/commit/10f563564390568febb3ed1d0f293371cbd86953.patch"; 27 hash = "sha256-wNQMJFJXTFILGzAgzUXzz/rnK67/RU+exYP6MhEQAkA="; 28 }) 29 ]; 30 31 nativeBuildInputs = [ 32 cython 33 setuptools-scm 34 wheel 35 ]; 36 37 propagatedBuildInputs = [ 38 fonttools 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 # Tests cannot seem to open the cpython module. 46 doCheck = false; 47 48 pythonImportsCheck = [ 49 "compreffor" 50 ]; 51 52 meta = with lib; { 53 description = "CFF table subroutinizer for FontTools"; 54 homepage = "https://github.com/googlefonts/compreffor"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ ]; 57 }; 58}