1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, fonttools 6, pytestCheckHook 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "cffsubr"; 12 version = "0.2.9.post1"; 13 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "azFBLc9JyPqEZkvahn4u3cVbb+b6aW/yU8TxOp/y/Fw="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools-scm 23 ]; 24 25 propagatedBuildInputs = [ 26 fonttools 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "cffsubr" ]; 34 35 meta = with lib; { 36 broken = stdenv.isDarwin; 37 description = "Standalone CFF subroutinizer based on AFDKO tx"; 38 homepage = "https://github.com/adobe-type-tools/cffsubr"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ jtojnar ]; 41 }; 42}