blob: 24a17b741dd904fbf0754628a9c108d187d4fd5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
pytestCheckHook,
hatchling,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "coqpit-config";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "idiap";
repo = "coqui-ai-coqpit";
tag = "v${finalAttrs.version}";
hash = "sha256-WXzKXFnSGgt3aHY5yqPgNKd3ukJD7wZVNGddj981cDY=";
};
build-system = [ hatchling ];
dependencies = [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"coqpit"
"coqpit.coqpit"
];
# https://github.com/coqui-ai/coqpit/issues/40
disabledTests = lib.optionals (pythonAtLeast "3.11") [ "test_init_argparse_list_and_nested" ];
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ "tests/test_nested_configs.py" ];
meta = {
description = "Simple but maybe too simple config management through python data classes";
longDescription = ''
Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization.
'';
homepage = "https://github.com/idiap/coqui-ai-coqpit";
license = lib.licenses.mit;
teams = [ lib.teams.tts ];
};
})
|