depot/third_party/nixpkgs/pkgs/development/python-modules/omorfi/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

29 lines
583 B
Nix

{
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 ];
};
}