depot/third_party/nixpkgs/pkgs/development/python-modules/omegaconf/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

52 lines
918 B
Nix

{ lib
, antlr4_9-python3-runtime
, buildPythonPackage
, fetchFromGitHub
, jre_minimal
, pydevd
, pytest-mock
, pytestCheckHook
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "omegaconf";
version = "2.2.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "omry";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-sJUYi0M/6SBSeKVSJoNY7IbVmzRZVTlek8AyL2cOPAM=";
};
nativeBuildInputs = [
jre_minimal
];
propagatedBuildInputs = [
antlr4_9-python3-runtime
pyyaml
];
checkInputs = [
pydevd
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"omegaconf"
];
meta = with lib; {
description = "Framework for configuring complex applications";
homepage = "https://github.com/omry/omegaconf";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}