{
  python3,
  # dependencies
  nix,
  alejandra,
  nix-prefetch-git,
}:
python3.pkgs.buildPythonApplication {
  pname = "update-vim-plugins";
  version = "0.1.0";
  format = "pyproject";

  src = ./.;

  # NOTE: The test are not really meant to work <2023-12-09>
  doCheck = false;

  nativeBuildInputs = [
    python3.pkgs.poetry-core
  ];
  buildInputs = [
    alejandra
    nix-prefetch-git
    nix
  ];
  propagatedBuildInputs = with python3.pkgs; [
    requests
    cleo
    jsonpickle
    dateparser
  ];
  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook

    pytest-cov
    pytest-mock
  ];
  pytestFlagsArray = [
    "--cov"
    "update_vim_plugins"
    "--cov-report"
    "term-missing:skip-covered"
    "--cov-fail-under"
    "50"
    "update_vim_plugins/tests"
  ];
}