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