1{ buildPythonPackage
2, pkgs
3, lib
4, stdenv
5, hfst
6}:
7
8buildPythonPackage rec {
9 pname = "omorfi";
10 inherit (pkgs.omorfi) src version;
11
12 sourceRoot = "${src.name}/src/python";
13
14 propagatedBuildInputs = [
15 hfst
16 ];
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}