3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix
2020-11-09 11:39:28 +00:00

13 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"'
''