Merge pull request #153826 from fabaff/fix-hydra

python3Packages.hydra: disable failing tests

authored by Fabian Affolter and committed by GitHub 94f3b2ce c788b5a6

+35 -8
+35 -8
pkgs/development/python-modules/hydra/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook 2 - , importlib-resources, omegaconf, jre_headless, antlr4-python3-runtime }: 3 4 buildPythonPackage rec { 5 pname = "hydra"; 6 version = "1.1.1"; 7 8 disabled = pythonOlder "3.6"; 9 ··· 14 sha256 = "sha256:1svzysrjg47gb6lxx66fzd8wbhpbbsppprpbqssf5aqvhxgay3qk"; 15 }; 16 17 - nativeBuildInputs = [ jre_headless ]; 18 - checkInputs = [ pytestCheckHook ]; 19 - propagatedBuildInputs = [ omegaconf antlr4-python3-runtime ] 20 - ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; 21 22 - # test environment setup broken under Nix for a few tests: 23 disabledTests = [ 24 "test_bash_completion_with_dot_in_path" 25 "test_install_uninstall" 26 ]; 27 - disabledTestPaths = [ "tests/test_hydra.py" ]; 28 29 meta = with lib; { 30 description = "A framework for configuring complex applications";
··· 1 + { lib 2 + , antlr4-python3-runtime 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , importlib-resources 6 + , jre_headless 7 + , omegaconf 8 + , pytestCheckHook 9 + , pythonOlder 10 + }: 11 12 buildPythonPackage rec { 13 pname = "hydra"; 14 version = "1.1.1"; 15 + format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 ··· 23 sha256 = "sha256:1svzysrjg47gb6lxx66fzd8wbhpbbsppprpbqssf5aqvhxgay3qk"; 24 }; 25 26 + nativeBuildInputs = [ 27 + jre_headless 28 + ]; 29 + 30 + propagatedBuildInputs = [ 31 + antlr4-python3-runtime 32 + omegaconf 33 + ] ++ lib.optionals (pythonOlder "3.9") [ 34 + importlib-resources 35 + ]; 36 + 37 + checkInputs = [ 38 + pytestCheckHook 39 + ]; 40 41 + # Test environment setup broken under Nix for a few tests: 42 disabledTests = [ 43 "test_bash_completion_with_dot_in_path" 44 "test_install_uninstall" 45 + "test_config_search_path" 46 ]; 47 + 48 + disabledTestPaths = [ 49 + "tests/test_hydra.py" 50 + ]; 51 + 52 + pythonImportsCheck = [ 53 + "hydra" 54 + ]; 55 56 meta = with lib; { 57 description = "A framework for configuring complex applications";