depot/third_party/nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

13 lines
329 B
Nix

{ python3, runCommand, git, nix }:
runCommand "update-python-libraries" {
buildInputs = [
nix
(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"'
''