2021-08-27 14:25:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook
|
|
|
|
, importlib-resources, omegaconf, jre_headless, antlr4-python3-runtime }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hydra";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "1.1.1";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookresearch";
|
|
|
|
repo = pname;
|
2021-08-27 14:25:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256:1svzysrjg47gb6lxx66fzd8wbhpbbsppprpbqssf5aqvhxgay3qk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
nativeBuildInputs = [ jre_headless ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ omegaconf antlr4-python3-runtime ]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
# test environment setup broken under Nix for a few tests:
|
|
|
|
disabledTests = [
|
|
|
|
"test_bash_completion_with_dot_in_path"
|
|
|
|
"test_install_uninstall"
|
|
|
|
];
|
|
|
|
disabledTestPaths = [ "tests/test_hydra.py" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A framework for configuring complex applications";
|
|
|
|
homepage = "https://hydra.cc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|