about summary refs log tree commit diff stats
path: root/pkgs/by-name/up/update-vim-plugins/package.nix
blob: e74a29b18feed0f25fdb28a2284f26762c9408cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  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"
  ];
}