Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
799 B · 43 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, pkgs, stdenv, buildPythonPackage, foma, icu, swig,}:
buildPythonPackage rec { pname = "hfst"; format = "setuptools"; inherit (pkgs.hfst) version src;
sourceRoot = "${src.name}/python";
postPatch = '' # omorfi-python looks for 'hfst' Python package sed -i 's/libhfst_swig/hfst/' setup.py; '';
nativeBuildInputs = [ swig ];
buildInputs = [ icu pkgs.hfst ];
setupPyBuildFlags = [ "--inplace" ];
# Find foma in Darwin tests preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' export DYLD_LIBRARY_PATH="${foma}/lib" '';
meta = with lib; { description = "Python bindings for HFST"; homepage = "https://github.com/hfst/hfst"; license = licenses.gpl3; maintainers = with maintainers; [ lurkki ]; };}