nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.34.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "dmort27";
23 repo = "epitran";
24 tag = "v${version}";
25 hash = "sha256-LKESBSLn2gpXx8kEXmykEkTboIMiS5gZ2Kb9rj1lDTk=";
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 = {
51 description = "Tools for transcribing languages into IPA";
52 homepage = "https://github.com/dmort27/epitran";
53 changelog = "https://github.com/dmort27/epitran/releases/tag/${src.tag}";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ vizid ];
56 };
57}