commit 776640f523112c0d679d67891f42683318bfe0bd
parent a8540c986ae71d70134e2b06097bb04928b5e772
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Wed, 24 Jun 2020 12:56:14 +0300
Add python-hfst
Diffstat:
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -97,6 +97,9 @@ lib.makeScope newScope (
pyephem = python3Packages.callPackage ./development/python-modules/pyephem {
inherit sources;
};
+ python-hfst = python3Packages.callPackage ./development/python-modules/python-hfst {
+ inherit hfst;
+ };
pymbtiles = python3Packages.callPackage ./development/python-modules/pymbtiles {
inherit sources;
};
diff --git a/pkgs/development/python-modules/python-hfst/default.nix b/pkgs/development/python-modules/python-hfst/default.nix
@@ -0,0 +1,20 @@
+{ lib, buildPythonPackage, hfst, swig }:
+
+buildPythonPackage rec {
+ pname = "python-hfst";
+ inherit (hfst) src version;
+
+ buildInputs = [ hfst ];
+
+ nativeBuildInputs = [ swig ];
+
+ preConfigure = "cd python";
+
+ meta = with lib; {
+ description = "Python bindings for HFST";
+ homepage = "https://github.com/hfst/python/wiki";
+ license = hfst.meta.license;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.unix;
+ };
+}