diff --git a/pkgs/development/python-modules/monotonic-alignment-search/default.nix b/pkgs/development/python-modules/monotonic-alignment-search/default.nix new file mode 100644 index 000000000000..7ca496c13d21 --- /dev/null +++ b/pkgs/development/python-modules/monotonic-alignment-search/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + cython, + numpy_2, + + # dependencies + torch, +}: + +buildPythonPackage rec { + pname = "monotonic-alignment-search"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "eginhard"; + repo = "monotonic_alignment_search"; + rev = "refs/tags/v${version}"; + hash = "sha256-qBkJKED0KVArhzmhZo8UuWQ55XMMBgvKM3xOwiPVwKU="; + }; + + build-system = [ + setuptools + cython + numpy_2 + ]; + + dependencies = [ + torch + ]; + + pytestFlagsArray = [ "tests" ]; + + pythonImportsCheck = [ "monotonic_alignment_search" ]; + + meta = { + homepage = "https://github.com/eginhard/monotonic_alignment_search"; + description = "Monotonically align text and speech"; + changelog = "https://github.com/eginhard/monotonic_alignment_search/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jbgi ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7066958e5e22..f57ed8420119 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8373,6 +8373,10 @@ self: super: with self; { monotonic = callPackage ../development/python-modules/monotonic { }; + monotonic-alignment-search = + callPackage ../development/python-modules/monotonic-alignment-search + { }; + monty = callPackage ../development/python-modules/monty { }; monzopy = callPackage ../development/python-modules/monzopy { };