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