1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 cython,
9 numpy_2,
10
11 # dependencies
12 torch,
13}:
14
15buildPythonPackage rec {
16 pname = "monotonic-alignment-search";
17 version = "0.2.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "eginhard";
22 repo = "monotonic_alignment_search";
23 tag = "v${version}";
24 hash = "sha256-N714DfLyrdhhm2yWlMzUVZkQ5Ys2aOmtEcxACGM665Y=";
25 };
26
27 build-system = [
28 setuptools
29 cython
30 numpy_2
31 ];
32
33 dependencies = [
34 torch
35 ];
36
37 enabledTestPaths = [ "tests" ];
38
39 pythonImportsCheck = [ "monotonic_alignment_search" ];
40
41 meta = {
42 homepage = "https://github.com/eginhard/monotonic_alignment_search";
43 description = "Monotonically align text and speech";
44 changelog = "https://github.com/eginhard/monotonic_alignment_search/releases/tag/${src.tag}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ jbgi ];
47 };
48}