1{ 2 buildPythonPackage, 3 pkgs, 4 lib, 5 stdenv, 6 hfst, 7}: 8 9buildPythonPackage rec { 10 pname = "omorfi"; 11 format = "setuptools"; 12 inherit (pkgs.omorfi) src version; 13 14 sourceRoot = "${src.name}/src/python"; 15 16 propagatedBuildInputs = [ hfst ]; 17 18 # Fixes some improper import paths 19 patches = [ ./importfix.patch ]; 20 21 # Apply patch relative to source/src 22 patchFlags = [ "-p3" ]; 23 24 meta = with lib; { 25 description = "Python interface for Omorfi"; 26 homepage = "https://github.com/flammie/omorfi"; 27 license = licenses.gpl3; 28 maintainers = with maintainers; [ lurkki ]; 29 # Ofborg build error (hfst not found?) 30 broken = stdenv.isDarwin; 31 }; 32}