{ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast, # build-system hatchling, # tests argcomplete, pytest-mock, pytestCheckHook, }: buildPythonPackage rec { pname = "traitlets"; version = "5.14.3"; pyproject = true; src = fetchFromGitHub { owner = "ipython"; repo = "traitlets"; tag = "v${version}"; hash = "sha256-lWtgzXW1ffzl1jkFaq99X0dU8agulUMHaghsYKX+8Dk="; }; build-system = [ hatchling ]; nativeCheckInputs = [ argcomplete pytest-mock pytestCheckHook ]; disabledTests = [ # https://github.com/ipython/traitlets/issues/902 "test_complete_custom_completers" ] ++ lib.optionals (pythonAtLeast "3.14") [ # https://github.com/ipython/traitlets/issues/925 "test_complete_simple_app" "test_complete_subcommands_subapp1" ]; disabledTestPaths = [ # requires mypy-testing "tests/test_typing.py" ]; meta = { changelog = "https://github.com/ipython/traitlets/blob/v${version}/CHANGELOG.md"; description = "Traitlets Python config system"; homepage = "https://github.com/ipython/traitlets"; license = lib.licenses.bsd3; }; }