Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 720 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytest, omegaconf, pathlib2 }: 2 3buildPythonPackage rec { 4 pname = "hydra"; 5 version = "0.11.3"; 6 7 src = fetchFromGitHub { 8 owner = "facebookresearch"; 9 repo = pname; 10 rev = version; 11 sha256 = "0plbls65qfrvvigza3qvy0pwjzgkz8ylpgb1im14k3b125ny41ad"; 12 }; 13 14 checkInputs = [ pytest ]; 15 propagatedBuildInputs = [ omegaconf ] ++ lib.optional isPy27 pathlib2; 16 17 checkPhase = '' 18 runHook preCheck 19 pytest tests/ 20 runHook postCheck 21 ''; 22 23 meta = with lib; { 24 description = "A framework for configuring complex applications"; 25 homepage = "https://hydra.cc"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ bcdarwin ]; 28 }; 29}