depot/third_party/nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix
Default email 727493fff0 Project import generated by Copybara.
GitOrigin-RevId: b839d4a8557adc80e522f674529e586ab2a88d23
2020-11-09 16:59:12 +01:00

12 lines
316 B
Nix

{ python3, runCommand, git }:
runCommand "update-python-libraries" {
buildInputs = [
(python3.withPackages(ps: with ps; [ packaging requests toolz ]))
git
];
} ''
cp ${./update-python-libraries.py} $out
patchShebangs $out
substituteInPlace $out --replace 'GIT = "git"' 'GIT = "${git}/bin/git"'
''