aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/interpreters/python/update-python-libraries/default.nix
blob: 81975bc5250e1dccb126461d8715a3069eb47c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ python3, runCommand, git }:

runCommand "update-python-libraries" {
  buildInputs = [
    (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"'
''