Files
nixpkgs/pkgs/development/python-modules/omorfi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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