504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
665 B
Nix
33 lines
665 B
Nix
{ buildPythonPackage
|
|
, pkgs
|
|
, lib
|
|
, stdenv
|
|
, 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 ];
|
|
# Ofborg build error (hfst not found?)
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|