2023-03-04 12:14:45 +00:00
|
|
|
{ python3, runCommand, git, nix, nix-prefetch-git }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
runCommand "update-python-libraries" {
|
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
nix
|
2023-03-04 12:14:45 +00:00
|
|
|
nix-prefetch-git
|
2020-04-24 23:36:52 +00:00
|
|
|
(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"'
|
2020-11-09 15:59:12 +00:00
|
|
|
''
|