1{ python3, runCommand, git, nix, nix-prefetch-git }:
2
3runCommand "update-python-libraries" {
4 buildInputs = [
5 nix
6 nix-prefetch-git
7 (python3.withPackages(ps: with ps; [ packaging requests toolz ]))
8 git
9 ];
10} ''
11 cp ${./update-python-libraries.py} $out
12 patchShebangs $out
13 substituteInPlace $out --replace 'GIT = "git"' 'GIT = "${git}/bin/git"'
14''