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