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