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