Skip to content

Commit

Permalink
overrides: Pin pip to 20.2.4 to work around #244
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Feb 2, 2021
1 parent ba43d90 commit fedaae1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,23 @@ self: super:
}
);

# Work around https://github.com/nix-community/poetry2nix/issues/244
# where git deps are not picked up as they should
pip = if lib.versionAtLeast super.pip.version "20.3" then super.pip.overridePythonAttrs (old: let
pname = "pip";
version = "20.2.4";
in {
name = pname + "-" + version;
inherit version;
src = pkgs.fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
sha256 = "eMVV4ftgV71HLQsSeaOchYlfaJVgzNrwUynn3SA1/Do=";
name = "${pname}-${version}-source";
};
}) else super.pip;

poetry-core = super.poetry-core.overridePythonAttrs (old: {
# "Vendor" dependencies (for build-system support)
postPatch = ''
Expand Down

0 comments on commit fedaae1

Please sign in to comment.