1{ lib, buildPythonPackage, fetchFromGitHub, pytest-mock, pytestCheckHook 2, pyyaml, pythonOlder, jre_minimal, antlr4-python3-runtime }: 3 4buildPythonPackage rec { 5 pname = "omegaconf"; 6 version = "2.1.1"; 7 8 disabled = pythonOlder "3.6"; 9 10 src = fetchFromGitHub { 11 owner = "omry"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "0hh6pk4q6nb94bz9rwa6cysf3nj50rmqkjh34pqkh28nzg44afjw"; 15 }; 16 17 postPatch = '' 18 substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"]' 'setup_requires=[]' 19 ''; 20 21 checkInputs = [ pytestCheckHook pytest-mock ]; 22 nativeBuildInputs = [ jre_minimal ]; 23 propagatedBuildInputs = [ antlr4-python3-runtime pyyaml ]; 24 25 disabledTestPaths = [ "tests/test_pydev_resolver_plugin.py" ]; # needs pydevd - not in Nixpkgs 26 27 meta = with lib; { 28 description = "A framework for configuring complex applications"; 29 homepage = "https://github.com/omry/omegaconf"; 30 license = licenses.free; # prior bsd license (1988) 31 maintainers = with maintainers; [ bcdarwin ]; 32 }; 33}