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