1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 unittestCheckHook,
7
8 setuptools,
9
10 regex,
11 panphon,
12 marisa-trie,
13 requests,
14}:
15
16buildPythonPackage rec {
17 pname = "epitran";
18 version = "1.24";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "dmort27";
23 repo = "epitran";
24 tag = version;
25 hash = "sha256-AH4q8J5oMaUVJ559qe/ZlJXlCcGdxWnxMhnZKCH5Rlk=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 regex
32 panphon
33 marisa-trie
34 requests
35 ];
36
37 nativeCheckInputs = [ unittestCheckHook ];
38
39 unittestFlagsArray = [
40 "-s"
41 "test"
42 ];
43
44 pythonImportsCheck = [
45 "epitran"
46 "epitran.backoff"
47 "epitran.vector"
48 ];
49
50 meta = with lib; {
51 description = "Tools for transcribing languages into IPA";
52 homepage = "https://github.com/dmort27/epitran";
53 changelog = "https://github.com/dmort27/epitran/releases/tag/${version}";
54 license = licenses.mit;
55 maintainers = with maintainers; [ vizid ];
56 };
57}