4 antlr4-python3-runtime,
17 buildPythonPackage rec {
20 format = "setuptools";
22 disabled = pythonOlder "3.6";
24 src = fetchFromGitHub {
25 owner = "facebookresearch";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-kD4BStnstr5hwyAOxdpPzLAJ9MZqU/CPiHkaD2HnUPI=";
34 antlr_jar = "${antlr4.out}/share/java/antlr-${antlr4.version}-complete.jar";
36 # https://github.com/facebookresearch/hydra/pull/2731
38 name = "setuptools-67.5.0-test-compatibility.patch";
39 url = "https://github.com/facebookresearch/hydra/commit/25873841ed8159ab25a0c652781c75cc4a9d6e08.patch";
40 hash = "sha256-oUfHlJP653o3RDtknfb8HaaF4fpebdR/OcbKHzJFK/Q=";
45 # We substitute the path to the jar with the one from our antlr4
46 # package, so this file becomes unused
47 rm -v build_helpers/bin/antlr*-complete.jar
49 sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements/requirements.txt
52 nativeBuildInputs = [ jre_headless ];
54 propagatedBuildInputs = [
55 antlr4-python3-runtime
58 ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
60 nativeCheckInputs = [ pytestCheckHook ];
67 # Test environment setup broken under Nix for a few tests:
69 "test_bash_completion_with_dot_in_path"
70 "test_install_uninstall"
71 "test_config_search_path"
72 # does not raise UserWarning
73 "test_initialize_compat_version_base"
76 disabledTestPaths = [ "tests/test_hydra.py" ];
78 pythonImportsCheck = [
80 # See https://github.com/NixOS/nixpkgs/issues/208843
85 description = "Framework for configuring complex applications";
86 homepage = "https://hydra.cc";
87 license = licenses.mit;
88 maintainers = with maintainers; [ bcdarwin ];