2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
python3,
|
|
|
|
runCommand,
|
|
|
|
git,
|
|
|
|
nix,
|
|
|
|
nix-prefetch-git,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
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"'
|
|
|
|
''
|