self: super: let pipFunction = {fetchFromGitHub}: rec {version = "9.0.3";src = fetchFromGitHub {owner = "pypa"; repo = "pip"; rev = version; hash = "sha256-ei5ru7kr6m+VJYcYMH8Fjya1eqBqkOaC4+JwDqTd46Q=";};}; in with self; with super; let pythonInterpreter = python.pythonOnBuildForHost.interpreter; pythonCheckInterpreter = python.interpreter; pythonSitePackages = python.sitePackages; in rec { bootstrapped-pip = toPythonModule (callPackage ./python26/bootstrapped-pip.nix {}); pip = callPackage ./python26/pip.nix {}; argparse = callPackage ./python26/argparse.nix {}; hookOverrides = { inherit pipInstallHook pythonImportsCheckHook; }; pipInstallHookMine = callPackage ( { makePythonHook, pip }: makePythonHook { name = "pip-install-hook"; propagatedBuildInputs = [ pip ]; substitutions = { inherit pythonInterpreter pythonSitePackages pip; }; } ./pip-install-hook.sh ) { }; pipInstallHook = pipInstallHookMine; pythonImportsCheckHookMine = callPackage ( { makePythonHook }: makePythonHook { name = "python-imports-check-hook"; substitutions = { inherit pythonInterpreter pythonCheckInterpreter pythonSitePackages; importlib = ./python26/importlib.py; }; } ./python-imports-check-hook.sh ) { }; pythonImportsCheckHook = pythonImportsCheckHookMine; importlib = callPackage ./importlib.nix {}; setuptools = toPythonModule (callPackage ./setuptools.nix { }); wheel = callPackage ./python26/wheel.nix { }; #pip = pip.overridePythonAttrs (callPackage pipFunction {}); bommels = { jinja2 = callPackage ./jinja2.nix { }; lxml = callPackage ./lxml.nix { }; }; }