pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / applications / editors / vim / plugins / updater.nix
blob1a62f13a04086cf32fbdcbcc2d0c2d2ac1cfbaa9
1 { buildPythonApplication
2 , nix
3 , makeWrapper
4 , python3Packages
5 , lib
6 , nix-prefetch-git
7 , nurl
9 # optional
10 , neovim-unwrapped
12 buildPythonApplication {
13   pname = "vim-plugins-updater";
14   version = "0.1";
16   format = "other";
18   nativeBuildInputs = [
19     makeWrapper
20     python3Packages.wrapPython
21   ];
23   pythonPath = [
24     python3Packages.gitpython
25   ];
27   dontUnpack = true;
29   installPhase = ''
30     mkdir -p $out/bin $out/lib
31     cp ${./update.py} $out/bin/vim-plugins-updater
32     cp ${./get-plugins.nix} $out/bin/get-plugins.nix
34     # wrap python scripts
35     makeWrapperArgs+=( --prefix PATH : "${lib.makeBinPath [
36       nix nix-prefetch-git neovim-unwrapped nurl ]}" --prefix PYTHONPATH : "${./.}:${../../../../../maintainers/scripts/pluginupdate-py}" )
37     wrapPythonPrograms
38   '';
40   shellHook = ''
41     export PYTHONPATH=pkgs/applications/editors/vim/plugins:maintainers/scripts/pluginupdate-py:$PYTHONPATH
42     '';
44   meta.mainProgram = "vim-plugins-updater";