1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "coqpit";
11 version = "0.0.17";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "coqui-ai";
16 repo = pname;
17 rev = "refs/tags/v${version}";
18 hash = "sha256-FY3PYd8dY5HFKkhD6kBzPt0k1eFugdqsO3yIN4oDk3E=";
19 };
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [
24 "coqpit"
25 "coqpit.coqpit"
26 ];
27
28 # https://github.com/coqui-ai/coqpit/issues/40
29 disabledTests = lib.optionals (pythonAtLeast "3.11") [ "test_init_argparse_list_and_nested" ];
30
31 disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ "tests/test_nested_configs.py" ];
32
33 meta = with lib; {
34 description = "Simple but maybe too simple config management through python data classes";
35 longDescription = ''
36 Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization.
37 '';
38 homepage = "https://github.com/coqui-ai/coqpit";
39 license = licenses.mit;
40 maintainers = teams.tts.members;
41 };
42}