567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
30 lines
581 B
Nix
30 lines
581 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 = {
|
|
description = "Python interface for Omorfi";
|
|
homepage = "https://github.com/flammie/omorfi";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ lurkki ];
|
|
};
|
|
}
|