about summary refs log tree commit diff
path: root/pkgs/development/python-modules/omorfi/default.nix
blob: ab78e6eda12058bbc63de811b16044f8b706cc71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  buildPythonPackage,
  pkgs,
  lib,
  hfst,
}:

buildPythonPackage rec {
  pname = "omorfi";
  format = "setuptools";
  inherit (pkgs.omorfi) src version;

  sourceRoot = "${src.name}/src/python";

  propagatedBuildInputs = [ hfst ];

  # Fixes some improper import paths
  patches = [ ./importfix.patch ];

  # Apply patch relative to source/src
  patchFlags = [ "-p3" ];

  meta = with lib; {
    description = "Python interface for Omorfi";
    homepage = "https://github.com/flammie/omorfi";
    license = licenses.gpl3;
    maintainers = with maintainers; [ lurkki ];
  };
}