core/pkgs/by-name/py/python/update-python-libraries/default.nix
2024-06-30 09:16:52 +01:00

29 lines
460 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"'
''