2021-08-27 14:25:00 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest-mock, pytestCheckHook
|
|
|
|
, pyyaml, pythonOlder, jre_minimal, antlr4-python3-runtime }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "omegaconf";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.1.1";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omry";
|
|
|
|
repo = pname;
|
2021-08-27 14:25:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0hh6pk4q6nb94bz9rwa6cysf3nj50rmqkjh34pqkh28nzg44afjw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"]' 'setup_requires=[]'
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pytest-mock ];
|
|
|
|
nativeBuildInputs = [ jre_minimal ];
|
|
|
|
propagatedBuildInputs = [ antlr4-python3-runtime pyyaml ];
|
|
|
|
|
|
|
|
disabledTestPaths = [ "tests/test_pydev_resolver_plugin.py" ]; # needs pydevd - not in Nixpkgs
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A framework for configuring complex applications";
|
|
|
|
homepage = "https://github.com/omry/omegaconf";
|
|
|
|
license = licenses.free; # prior bsd license (1988)
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|