Skip to content

Commit fedaae1

Browse files
committed
overrides: Pin pip to 20.2.4 to work around #244
1 parent ba43d90 commit fedaae1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

overrides.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,23 @@ self: super:
654654
}
655655
);
656656

657+
# Work around https://github.com/nix-community/poetry2nix/issues/244
658+
# where git deps are not picked up as they should
659+
pip = if lib.versionAtLeast super.pip.version "20.3" then super.pip.overridePythonAttrs (old: let
660+
pname = "pip";
661+
version = "20.2.4";
662+
in {
663+
name = pname + "-" + version;
664+
inherit version;
665+
src = pkgs.fetchFromGitHub {
666+
owner = "pypa";
667+
repo = pname;
668+
rev = version;
669+
sha256 = "eMVV4ftgV71HLQsSeaOchYlfaJVgzNrwUynn3SA1/Do=";
670+
name = "${pname}-${version}-source";
671+
};
672+
}) else super.pip;
673+
657674
poetry-core = super.poetry-core.overridePythonAttrs (old: {
658675
# "Vendor" dependencies (for build-system support)
659676
postPatch = ''

0 commit comments

Comments
 (0)