Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchpatch, 6 fetchPypi, 7 fonttools, 8 pytestCheckHook, 9 setuptools-scm, 10 wheel, 11}: 12 13buildPythonPackage rec { 14 pname = "cffsubr"; 15 version = "0.2.9.post1"; 16 format = "pyproject"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-azFBLc9JyPqEZkvahn4u3cVbb+b6aW/yU8TxOp/y/Fw="; 21 }; 22 23 patches = [ 24 # https://github.com/adobe-type-tools/cffsubr/pull/23 25 (fetchpatch { 26 name = "remove-setuptools-git-ls-files.patch"; 27 url = "https://github.com/adobe-type-tools/cffsubr/commit/887a6a03b1e944b82fcb99b797fbc2f3a64298f0.patch"; 28 hash = "sha256-LuyqBtDrKWwCeckr+YafZ5nfVw1XnELwFI6X8bGomhs="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 wheel 35 ]; 36 37 propagatedBuildInputs = [ fonttools ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 pythonImportsCheck = [ "cffsubr" ]; 42 43 meta = with lib; { 44 broken = stdenv.isDarwin; 45 description = "Standalone CFF subroutinizer based on AFDKO tx"; 46 mainProgram = "cffsubr"; 47 homepage = "https://github.com/adobe-type-tools/cffsubr"; 48 license = licenses.asl20; 49 maintainers = [ ]; 50 }; 51}