0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 22:20:30 +03:00
nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
368 B
Nix
Raw Normal View History

{ 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"'
''