11 buildPythonPackage rec {
13 format = "setuptools";
14 inherit (pkgs.hfst) version src;
16 sourceRoot = "${src.name}/python";
19 # omorfi-python looks for 'hfst' Python package
20 sed -i 's/libhfst_swig/hfst/' setup.py;
23 nativeBuildInputs = [ swig ];
30 setupPyBuildFlags = [ "--inplace" ];
32 # Find foma in Darwin tests
33 preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
34 export DYLD_LIBRARY_PATH="${foma}/lib"
38 description = "Python bindings for HFST";
39 homepage = "https://github.com/hfst/hfst";
40 license = licenses.gpl3;
41 maintainers = with maintainers; [ lurkki ];