10 buildPythonPackage rec {
12 format = "setuptools";
13 inherit (pkgs.hfst) version src;
15 sourceRoot = "${src.name}/python";
18 # omorfi-python looks for 'hfst' Python package
19 sed -i 's/libhfst_swig/hfst/' setup.py;
35 # Find foma in Darwin tests
36 preCheck = lib.optionalString stdenv.isDarwin ''
37 export DYLD_LIBRARY_PATH="${foma}/lib"
41 description = "Python bindings for HFST";
42 homepage = "https://github.com/hfst/hfst";
43 license = licenses.gpl3;
44 maintainers = with maintainers; [ lurkki ];