File tree 1 file changed +26
-2
lines changed
1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -654,6 +654,28 @@ self: super:
654
654
}
655
655
) ;
656
656
657
+ # Work around https://github.com/nix-community/poetry2nix/issues/244
658
+ # where git deps are not picked up as they should
659
+ pip =
660
+ if lib . versionAtLeast super . pip . version "20.3" then
661
+ super . pip . overridePythonAttrs
662
+ ( old :
663
+ let
664
+ pname = "pip" ;
665
+ version = "20.2.4" ;
666
+ in
667
+ {
668
+ name = pname + "-" + version ;
669
+ inherit version ;
670
+ src = pkgs . fetchFromGitHub {
671
+ owner = "pypa" ;
672
+ repo = pname ;
673
+ rev = version ;
674
+ sha256 = "eMVV4ftgV71HLQsSeaOchYlfaJVgzNrwUynn3SA1/Do=" ;
675
+ name = "${ pname } -${ version } -source" ;
676
+ } ;
677
+ } ) else super . pip ;
678
+
657
679
poetry-core = super . poetry-core . overridePythonAttrs ( old : {
658
680
# "Vendor" dependencies (for build-system support)
659
681
postPatch = ''
@@ -1275,13 +1297,15 @@ self: super:
1275
1297
format = "wheel" ;
1276
1298
} ;
1277
1299
# If "wheel" is built from source
1278
- sourcePackage = (
1300
+ sourcePackage = ( (
1279
1301
pkgs . python3 . pkgs . override {
1280
1302
python = self . python ;
1281
1303
}
1282
1304
) . wheel . override {
1283
1305
inherit ( self ) buildPythonPackage bootstrapped-pip setuptools ;
1284
- } ;
1306
+ } ) . overrideAttrs ( old : {
1307
+ inherit ( super . wheel ) pname name version src ;
1308
+ } ) ;
1285
1309
in
1286
1310
if isWheel then wheelPackage else sourcePackage ;
1287
1311
You can’t perform that action at this time.
0 commit comments