2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
pytestCheckHook,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coqpit";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.0.17";
|
2021-05-20 23:08:51 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coqui-ai";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-FY3PYd8dY5HFKkhD6kBzPt0k1eFugdqsO3yIN4oDk3E=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"coqpit"
|
|
|
|
"coqpit.coqpit"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
# https://github.com/coqui-ai/coqpit/issues/40
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.11") [ "test_init_argparse_list_and_nested" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ "tests/test_nested_configs.py" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
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/coqui-ai/coqpit";
|
|
|
|
license = licenses.mit;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = teams.tts.members;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|