python: Use makeScopeWithSplicing

Now non-`buildInputs` that are python packages should be resolved
correctly.
This commit is contained in:
John Ericson
2020-11-19 11:58:07 -05:00
parent 330d468002
commit b57c5d4456
5 changed files with 95 additions and 19 deletions
+4 -9
View File
@@ -9,19 +9,16 @@
{ pkgs
, stdenv
, python
, overrides ? (self: super: {})
}:
with pkgs.lib;
let
packages = ( self:
self:
let
inherit (self) callPackage;
inherit (python.passthru) isPy27 isPy35 isPy36 isPy37 isPy38 isPy39 isPy3k isPyPy pythonAtLeast pythonOlder;
callPackage = pkgs.newScope self;
namePrefix = python.libPrefix + "-";
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };
@@ -102,7 +99,7 @@ in {
inherit (python.passthru) isPy27 isPy35 isPy36 isPy37 isPy38 isPy39 isPy3k isPyPy pythonAtLeast pythonOlder;
inherit python bootstrapped-pip buildPythonPackage buildPythonApplication;
inherit fetchPypi callPackage;
inherit fetchPypi;
inherit hasPythonModule requiredPythonModules makePythonPath disabledIf;
inherit toPythonModule toPythonApplication;
inherit buildSetupcfg;
@@ -7960,6 +7957,4 @@ in {
zxcvbn = callPackage ../development/python-modules/zxcvbn { };
});
in fix' (extends overrides packages)
}