nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix
Ryan Mulligan c0972c16dc update-python-libraries: add missing dependency nix
nix is needed for nix-prefetch-url
2022-10-09 16:06:59 +00:00

14 lines
329 B
Nix

{ python3, runCommand, git, nix }:
runCommand "update-python-libraries" {
buildInputs = [
nix
(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"'
''