Skip to content

Commit

Permalink
Merge pull request #96 from Kha/master
Browse files Browse the repository at this point in the history
fix requirements.nix
  • Loading branch information
Johannes Bechberger committed Sep 26, 2019
2 parents 74086d2 + 39212a2 commit be14c66
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions requirements.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ let
inherit pkgs;
inherit (pkgs) stdenv;
python = pkgs.python3;
# patching pip so it does not try to remove files when running nix-shell
overrides =
self: super: {
bootstrapped-pip = super.bootstrapped-pip.overrideDerivation (old: {
patchPhase = old.patchPhase + ''
if [ -e $out/${pkgs.python3.sitePackages}/pip/req/req_install.py ]; then
sed -i \
-e "s|paths_to_remove.remove(auto_confirm)|#paths_to_remove.remove(auto_confirm)|" \
-e "s|self.uninstalled = paths_to_remove|#self.uninstalled = paths_to_remove|" \
$out/${pkgs.python3.sitePackages}/pip/req/req_install.py
fi
'';
});
};
};

commonBuildInputs = [];
Expand Down Expand Up @@ -191,4 +177,4 @@ in python.withPackages
generated
allOverrides
)
)
)

0 comments on commit be14c66

Please sign in to comment.