02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, pythonOlder
|
|
, jre_minimal
|
|
, antlr4_9-python3-runtime
|
|
, pydevd }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "omegaconf";
|
|
version = "2.2.2";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "omry";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bUJ80sa2ot2JSkt29eFwSiKL6R1X1+VVeE9dFIy4Mg0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"]' 'setup_requires=[]'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
jre_minimal
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
antlr4_9-python3-runtime
|
|
pyyaml
|
|
];
|
|
|
|
checkInputs = [
|
|
pydevd
|
|
pytestCheckHook
|
|
pytest-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "omegaconf" ];
|
|
|
|
meta = with lib; {
|
|
description = "A framework for configuring complex applications";
|
|
homepage = "https://github.com/omry/omegaconf";
|
|
license = licenses.free; # prior bsd license (1988)
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|