Files
nixpkgs/pkgs/development/python-modules/coqpit/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,
pytestCheckHook,
hatchling,
typing-extensions,
}:
buildPythonPackage rec {
pname = "coqpit-config";
version = "0.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "idiap";
repo = "coqui-ai-coqpit";
tag = "v${version}";
hash = "sha256-puTqaYK1j1SGqGQQsrEH9lbpcF0FzcQ8v2siUQVyHsE=";
};
nativeCheckInputs = [ pytestCheckHook ];
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
typing-extensions
];
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 = 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/idiap/coqui-ai-coqpit";
license = licenses.mit;
teams = [ teams.tts ];
};
}