depot/third_party/nixpkgs/pkgs/development/python-modules/omorfi/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

32 lines
640 B
Nix

{ buildPythonPackage
, pkgs
, lib
, stdenv
, hfst
}:
buildPythonPackage rec {
pname = "omorfi";
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;
};
}