-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
/
default.nix
45 lines (39 loc) · 1.13 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, isPy39
, fetchFromGitHub
, pytestCheckHook
, antlr4-python3-runtime
, importlib-resources
, jre_headless
, omegaconf
}:
buildPythonPackage rec {
pname = "hydra";
version = "1.1.1";
disabled = pythonOlder "3.6" || !pythonOlder "3.10";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = pname;
rev = "v${version}";
sha256 = "sha256:1svzysrjg47gb6lxx66fzd8wbhpbbsppprpbqssf5aqvhxgay3qk";
};
nativeBuildInputs = [ jre_headless ];
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ omegaconf antlr4-python3-runtime ]
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
# test environment setup broken under Nix for a few tests:
disabledTests = [
"test_bash_completion_with_dot_in_path"
"test_install_uninstall"
] ++ lib.optionals (!isPy39) [ "test_config_search_path" ];
disabledTestPaths = [ "tests/test_hydra.py" ];
meta = with lib; {
description = "A framework for configuring complex applications";
homepage = "https://hydra.cc";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}