4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
14 lines
368 B
Nix
14 lines
368 B
Nix
{ python3, runCommand, git, nix, nix-prefetch-git }:
|
|
|
|
runCommand "update-python-libraries" {
|
|
buildInputs = [
|
|
nix
|
|
nix-prefetch-git
|
|
(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"'
|
|
''
|