diff options
author | Soispha <soispha@vhack.eu> | 2023-12-09 18:20:18 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-09 18:20:18 +0100 |
commit | b6302ae731f9d438f4e59f62d04903df79d4c942 (patch) | |
tree | 1b49245fe4e755d2fa4708de5e02b04ee1064605 /sys/nixpkgs/pkgs/update_vim_plugins/package.nix | |
parent | build(treewide): Update (diff) | |
download | nixos-config-b6302ae731f9d438f4e59f62d04903df79d4c942.zip |
feat(treewide): Specify nvim plugins in my flake
Diffstat (limited to '')
-rw-r--r-- | sys/nixpkgs/pkgs/update_vim_plugins/package.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/update_vim_plugins/package.nix b/sys/nixpkgs/pkgs/update_vim_plugins/package.nix new file mode 100644 index 00000000..e74a29b1 --- /dev/null +++ b/sys/nixpkgs/pkgs/update_vim_plugins/package.nix @@ -0,0 +1,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" + ]; +} |